Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning allowedaddresspair to port is failing with openstack4j library #1348

Open
sachin234s opened this issue Oct 17, 2024 · 0 comments
Open

Comments

@sachin234s
Copy link

Hi,

We are using openstack4j-core-3.10.jar to call openstack api's. We are facing below issue when trying to associate allowedaddresspair to created port

2024-10-17 13:26:06,174 ERROR [com.hp.usage.vnfm.lcm.workflow.task.InstantiateVdu] [ThreadPoolOperationExecutorService-Thread-6] InstantiateVdu has failed. Cannot update read-only attribute created_at
org.openstack4j.api.exceptions.ClientResponseException: Cannot update read-only attribute created_at
        at org.openstack4j.api.exceptions.ResponseException.mapException(ResponseException.java:58)
        at org.openstack4j.api.exceptions.ResponseException.mapException(ResponseException.java:70)
        at org.openstack4j.core.transport.HttpEntityHandler.handleLessThan500(HttpEntityHandler.java:99)
        at org.openstack4j.core.transport.HttpEntityHandler.handle(HttpEntityHandler.java:45)
        at org.openstack4j.connectors.okhttp.HttpResponseImpl.getEntity(HttpResponseImpl.java:65)
        at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:248)
        at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:238)
        at org.openstack4j.openstack.networking.internal.PortServiceImpl.update(PortServiceImpl.java:89)
        at com.hp.usage.vnfm.vim.openstack.OpenStackNeutron.processPortCreation(OpenStackNeutron.java:1548)

The steps to recreate are as below

  1. Create vip port is successful
  2. create fixed ip port is successful
  3. above issue is observed when fixedipaddress is updated by passing allowed address pairs in update.

Could you suggest how the above use case can be acheived without error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant