Failure to create load-balancers unless the PROJECT_ID field is provided in credentials

Bug #2075524 reported by Adam Dyess
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder CSI
Fix Committed
Undecided
Unassigned
K8s Keystone Auth
Triaged
Undecided
Unassigned
Openstack Cloud Controller Charm
Fix Committed
Undecided
Unassigned
Openstack Integrator Charm
Fix Committed
Undecided
Unassigned

Bug Description

2024-08-01 14:06:45 WARNING unit.openstack-integrator/1.lb-consumers-relation-departed logger.go:60 Policy does not allow this request to be performed. (HTTP 403) (Request-ID: req-29936264-2399-4fc1-b67d-51b1b08e6e3e)
2024-08-01 14:06:45 ERROR unit.openstack-integrator/1.juju-log server.go:325 lb-consumers:17: Error creating loadbalancer
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-openstack-integrator-1/charm/lib/charms/layer/openstack.py", line 430, in get_or_create
    lb.create()
  File "/var/lib/juju/agents/unit-openstack-integrator-1/charm/lib/charms/layer/openstack.py", line 514, in create
    lb_info = self._find("load balancers", self._impl.list_loadbalancers())
  File "/var/lib/juju/agents/unit-openstack-integrator-1/charm/lib/charms/layer/openstack.py", line 914, in list_loadbalancers
    return _openstack("loadbalancer", "list")
  File "/var/lib/juju/agents/unit-openstack-integrator-1/charm/lib/charms/layer/openstack.py", line 347, in _openstack
    output = _run_with_creds("openstack", *args, "--format=yaml")
  File "/var/lib/juju/agents/unit-openstack-integrator-1/charm/lib/charms/layer/openstack.py", line 341, in _run_with_creds
    result = subprocess.run(args, env=env, check=True, stdout=subprocess.PIPE)
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('openstack', 'loadbalancer', 'list', '--format=yaml')' returned non-zero exit status 1.

It was determined that method lib.charms.layer.openstack._run_with_creds(...) is missing OS_PROJECT_ID but when it was available, the load-balancer was created successfully.

Adam Dyess (addyess)
Changed in charm-openstack-integrator:
milestone: none → 1.31
Changed in charm-cinder-csi:
status: New → Triaged
Changed in charm-openstack-cloud-controller:
status: New → Triaged
Changed in charm-openstack-integrator:
status: New → Triaged
Changed in charm-openstack-cloud-controller:
milestone: none → 1.31
Changed in charm-cinder-csi:
milestone: none → 1.31
Revision history for this message
Adam Dyess (addyess) wrote :

Also affects the interface-openstack-integrator as the credentials to O7K are shared over this relation

Revision history for this message
Adam Dyess (addyess) wrote :
Revision history for this message
Adam Dyess (addyess) wrote (last edit ):
Changed in charm-openstack-integrator:
status: Triaged → In Progress
Adam Dyess (addyess)
Changed in charm-openstack-cloud-controller:
status: Triaged → In Progress
Revision history for this message
Adam Dyess (addyess) wrote (last edit ):
Changed in keystone-k8s-auth-operator:
status: New → Triaged
Adam Dyess (addyess)
Changed in charm-cinder-csi:
status: Triaged → In Progress
Adam Dyess (addyess)
Changed in charm-openstack-cloud-controller:
status: In Progress → Fix Committed
Changed in charm-openstack-integrator:
status: In Progress → Fix Committed
Adam Dyess (addyess)
Changed in charm-cinder-csi:
status: In Progress → Fix Committed
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.