aws-integrator cannot add role to worker node instance profile

Bug #2002637 reported by Yang Kelvin Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AWS Integrator Charm
Invalid
Undecided
Unassigned

Bug Description

I deployed CK with AWS overlay, but unit.aws-integrator got following error:

unit-kubernetes-control-plane-1: 19:51:39 WARNING unit.unit-kubernetes-control-plane-1.collect-metrics Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get replicationcontrollers)
unit-aws-integrator-0: 19:51:51 INFO unit.aws-integrator/0.juju-log aws:18: An error occurred (NoSuchEntity) when calling the AddRoleToInstanceProfile operation: The role with name charm.aws.5807f201-b452-44f0-85c8-f81f1147b2e4.kubernetes-worker cannot be found.
unit-aws-integrator-0: 19:51:51 INFO unit.aws-integrator/0.juju-log aws:18: Retrying in 30 seconds
unit-kubernetes-control-plane-0: 19:51:52 WARNING unit.unit-kubernetes-control-plane-0.collect-metrics Unable to connect to the server: stream error: stream ID 7; INTERNAL_ERROR; received from peer
unit-aws-integrator-0: 19:52:21 ERROR unit.aws-integrator/0.juju-log aws:18: Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-aws-integrator-0/charm/reactive/aws.py", line 91, in handle_requests
    layer.aws.enable_instance_inspection(
  File "/var/lib/juju/agents/unit-aws-integrator-0/charm/lib/charms/layer/aws.py", line 243, in enable_instance_inspection
    role_name = _get_role_name(application_name, instance_id, region)
  File "/var/lib/juju/agents/unit-aws-integrator-0/charm/lib/charms/layer/aws.py", line 1044, in _get_role_name
    _ensure_role(application_name, role_name)
  File "/var/lib/juju/agents/unit-aws-integrator-0/charm/lib/charms/layer/aws.py", line 1089, in _ensure_role
    _retry_for_entity_delay(_add_role_to_instance_profile)
  File "/var/lib/juju/agents/unit-aws-integrator-0/charm/lib/charms/layer/aws.py", line 872, in _retry_for_entity_delay
    raise TimeoutAWSError()
charms.layer.aws.TimeoutAWSError: timed out

juju status: https://pastebin.ubuntu.com/p/vsd93wSB9r/
debug-log: https://pastebin.ubuntu.com/p/86gmdkJV2B/
overlay:

description: Charmed Kubernetes overlay to add native AWS support.
applications:
  aws-integrator:
    annotations:
      gui-x: "600"
      gui-y: "300"
    charm: aws-integrator
    num_units: 1
    trust: true
relations:
  - ['aws-integrator', 'kubernetes-control-plane']
  - ['aws-integrator', 'kubernetes-worker']

description: updated
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

The root cause was the aws user doesn't have sufficient permission to operate with the aws-intergrator charm.

Changed in charm-aws-integrator:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.