Skip to content

[manila] [tests] dalmatian release doesn't respect client microversion #1847

@kayrus

Description

@kayrus

Affected Resource(s)

Please list the resources as a list, for example:

  • openstack_sharedfilesystem_*

Expected Behavior

Acceptance tests fail due to manila API doesn't respect client's microversion header

What should have happened?

2025/03/12 14:00:05 [DEBUG] OpenStack Request URL: GET http://10.1.0.21/share/v2/shares/19a2575e-175f-45b2-811b-e2c44cd8f6e6/export_locations
2025/03/12 14:00:05 [DEBUG] OpenStack Request Headers:
Accept: application/json
Cache-Control: no-cache
Openstack-Api-Version: shared-file-system 2.14
User-Agent: HashiCorp Terraform/1.11.1 (+https://www.terraform.io) Terraform Plugin SDK/ Terraform Provider OpenStack/dev gophercloud/v2.6.0
X-Auth-Token: ***
X-Openstack-Manila-Api-Version: 2.14
2025/03/12 14:00:05 [DEBUG] OpenStack Response Code: 200 
2025/03/12 14:00:05 [DEBUG] OpenStack Response Headers:
Content-Length: 266
Content-Type: application/json
Date: Wed, 12 Mar 2025 14:00:05 GMT
Server: Apache/2.4.52 (Ubuntu)
Vary: X-OpenStack-Manila-API-Version
X-Compute-Request-Id: req-813d503c-07c7-43fe-bd7e-2d4c9f16a180
X-Openstack-Manila-Api-Version: 2.14
2025/03/12 14:00:05 [DEBUG] OpenStack Response Body: {
  "export_locations": [
    {
      "id": "86110e8f-fb57-4cb1-b9b9-b44300e53d03",
      "is_admin_only": false,      
      "path": "10.1.0.21:/opt/stack/data/manila/mnt/share-4a9b7671-7541-40bd-8973-1bb18901ab89",
      "preferred": false,
      "share_instance_id": "4a9b7671-7541-40bd-8973-1bb18901ab89"
    }
  ]
}

Actual Behavior

2025/03/13 08:14:33 [DEBUG] OpenStack Request URL: GET http://10.1.0.29/share/v1/3bdfac89771347f88d57cc099b023269/shares/5d850dd4-ae1e-4d6e-94b1-0e55faaa9f55/export_locations
2025/03/13 08:14:33 [DEBUG] OpenStack Request Headers:
Accept: application/json
Cache-Control: no-cache
Openstack-Api-Version: shared-file-system 2.14
User-Agent: HashiCorp Terraform/1.11.1 (+https://www.terraform.io) Terraform Plugin SDK/ Terraform Provider OpenStack/dev gophercloud/v2.6.0
X-Auth-Token: ***
X-Openstack-Manila-Api-Version: 2.14
2025/03/13 08:14:33 [DEBUG] OpenStack Response Code: 404 
2025/03/13 08:14:33 [DEBUG] OpenStack Response Headers:
Content-Length: 112
Content-Type: application/json
Date: Thu, 13 Mar 2025 08:14:33 GMT
Server: Apache/2.4.52 (Ubuntu)
2025/03/13 08:14:33 [DEBUG] OpenStack Response Body: {
  "code": "404 Not Found",
  "message": "The resource could not be found.\u003cbr /\u003e\u003cbr /\u003e\n\n\n",
  "title": "Not Found"
}

Other API requests clearly hinting that X-Openstack-Manila-Api-Version: 2.14 and Openstack-Api-Version: shared-file-system 2.14 are ignored in API response:

2025/03/13 08:14:33 [DEBUG] OpenStack Request URL: GET http://10.1.0.29/share/v1/3bdfac89771347f88d57cc099b023269/shares/5d850dd4-ae1e-4d6e-94b1-0e55faaa9f55
2025/03/13 08:14:33 [DEBUG] OpenStack Request Headers:
Accept: application/json
Cache-Control: no-cache
Openstack-Api-Version: shared-file-system 2.14
User-Agent: HashiCorp Terraform/1.11.1 (+https://www.terraform.io) Terraform Plugin SDK/ Terraform Provider OpenStack/dev gophercloud/v2.6.0
X-Auth-Token: ***
X-Openstack-Manila-Api-Version: 2.14
2025/03/13 08:14:33 [DEBUG] OpenStack Response Code: 200 
2025/03/13 08:14:33 [DEBUG] OpenStack Response Headers:
Content-Length: 1007
Content-Type: application/json
Date: Thu, 13 Mar 2025 08:14:33 GMT
Server: Apache/2.4.52 (Ubuntu)
Vary: X-OpenStack-Manila-API-Version
X-Compute-Request-Id: req-ed0242f0-27ef-408a-b9f7-8a263024a923
X-Openstack-Manila-Api-Version: 1.0
2025/03/13 08:14:33 [DEBUG] OpenStack Response Body: {
  "share": {
    "availability_zone": "manila-zone-0",
    "created_at": "2025-03-13T08:14:32.447861",
    "description": "test share description",
    "export_location": "10.1.0.29:/opt/stack/data/manila/mnt/share-032d0032-c228-4825-8d1d-0e17c3cbc13a",
    "export_locations": [
      "10.1.0.29:/opt/stack/data/manila/mnt/share-032d0032-c228-4825-8d1d-0e17c3cbc13a"
    ],
    "host": "fv-az693-167@chicago#lvm-single-pool",
    "id": "5d850dd4-ae1e-4d6e-94b1-0e55faaa9f55",
    "is_public": false,
    "links": [
      {
        "href": "http://10.1.0.29/share/v1/3bdfac89771347f88d57cc099b023269/shares/5d850dd4-ae1e-4d6e-94b1-0e55faaa9f55",
        "rel": "self"
      },
      {
        "href": "http://10.1.0.29/share/3bdfac89771347f88d57cc099b023269/shares/5d850dd4-ae1e-4d6e-94b1-0e55faaa9f55",
        "rel": "bookmark"
      }
    ],
    "metadata": {},
    "name": "nfs_share_admin",   
    "project_id": "3bdfac89771347f88d57cc099b023269",
    "share_network_id": null,    
    "share_proto": "NFS",
    "share_server_id": null,
    "share_type": "dhss_false",  
    "size": 1,
    "snapshot_id": null,
    "status": "available",
    "volume_type": "dhss_false"  
  }
}

see X-Openstack-Manila-Api-Version: 1.0 in a response.

Steps to Reproduce

https://github.com/terraform-provider-openstack/terraform-provider-openstack/actions/runs/13828956724/job/38688921714?pr=1845

Important Factoids

Is there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? A custom version of OpenStack? Tight ACLs?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

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