Skip to content

Assigning allowedaddresspair to port is failing with openstack4j library #1348

@sachin234s

Description

@sachin234s

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions