deploying to AWS fails - aws integrator charm erros

Bug #2003684 reported by Ian Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Bundles
New
Undecided
Unassigned

Bug Description

Deploying to AWS with the aws-integrator charm fails due to the integrator charm not being able to set up the instance profile.

It's failing in this method in aws.py

    def _add_role_to_instance_profile():
        try:
            _aws(
                "iam",
                "add-role-to-instance-profile",
                "--role-name",
                role_name,
                "--instance-profile-name",
                role_name,
            )
            log("Attached IAM role {} to instance-profile {}", role_name, role_name)
        except AlreadyExistsAWSError:
            pass

We deploy like this

juju deploy charmed-kubernetes --overlay /path/to/aws.yaml --trust

Where aws.yaml contains:

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']

The juju logs contain errors like

unit-aws-integrator-0: 15:54:16 INFO unit.aws-integrator/0.juju-log An error occurred (NoSuchEntity) when calling the AddRoleToInstanceProfile operation: The role with name charm.aws.748293e5-5135-43fb-8347-7c16df491f7f.kuberne...l-plane cannot be found.
unit-aws-integrator-0: 15:54:16 INFO unit.aws-integrator/0.juju-log Retrying in 10 seconds

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.