Skip to content

[WIP] Fix Microversion Header#352

Closed
pospispa wants to merge 5 commits intogophercloud:masterfrom
pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args
Closed

[WIP] Fix Microversion Header#352
pospispa wants to merge 5 commits intogophercloud:masterfrom
pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args

Conversation

@pospispa
Copy link
Copy Markdown
Contributor

@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from 3cafa73 to 0ea71c0 Compare May 30, 2017 11:04
@coveralls
Copy link
Copy Markdown

coveralls commented May 30, 2017

Coverage Status

Coverage remained the same at 70.03% when pulling 0ea71c0 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into 268e995 on gophercloud:master.

@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from 0ea71c0 to cb45b56 Compare May 30, 2017 11:34
@coveralls
Copy link
Copy Markdown

coveralls commented May 30, 2017

Coverage Status

Coverage remained the same at 70.03% when pulling cb45b56 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into 268e995 on gophercloud:master.

@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from cb45b56 to b2c7000 Compare May 30, 2017 11:50
@coveralls
Copy link
Copy Markdown

coveralls commented May 30, 2017

Coverage Status

Coverage remained the same at 70.03% when pulling b2c7000 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into 268e995 on gophercloud:master.

@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from b2c7000 to 2142564 Compare May 30, 2017 14:38
@coveralls
Copy link
Copy Markdown

coveralls commented May 30, 2017

Coverage Status

Coverage remained the same at 70.03% when pulling 2142564 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into 268e995 on gophercloud:master.

@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from 2142564 to e222a80 Compare May 30, 2017 14:42
@coveralls
Copy link
Copy Markdown

coveralls commented May 30, 2017

Coverage Status

Coverage remained the same at 70.03% when pulling e222a80 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into 268e995 on gophercloud:master.

Data as service type, microversion, service name, etc. are needed in ServiceClient struct because clients of services like Nova Compute or Manila need to insert an extra HTTP header which name depends on the service name and its value contains the service microversion.
Data as service type, microversion, service name, etc. are not returned from the V2EndpointURL and V3EndpointURL functions even though they are available in these functions

That's why the EndpointExtraInfo struct was added into the EndpointLocator type return values. The EndpointExtraInfo struct is not used yet, is kept empty and is being ignored.
@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from e222a80 to aa35f80 Compare June 1, 2017 18:27
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.4%) to 69.592% when pulling aa35f80 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into bbe95de on gophercloud:master.

@jrperritt jrperritt mentioned this pull request Jun 1, 2017
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 2, 2017

Coverage Status

Coverage decreased (-0.6%) to 69.411% when pulling 0867102 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into bbe95de on gophercloud:master.

pospispa added 4 commits June 5, 2017 14:12
…ceClient

Data as service type, microversion, service name, etc. are needed in ServiceClient struct because clients of services like Nova Compute or Manila need to insert an extra HTTP header which name depends on the service name and its value contains the service microversion.
Data as service type, microversion, service name, etc. are not returned from the V2EndpointURL and V3EndpointURL functions even though they are available in these functions.

That's why the V2EndpointURL and V3EndpointURL functions also return the EndpointExtraInfo struct that contain service type, etc.
Methods for working with the EndpointExtraInfo struct are implemented.
Shared file system API uses microversions. Some API calls like share instance export locations (https://developer.openstack.org/api-ref/shared-file-systems/?expanded=id234-detail#share-instance-export-locations-since-api-v2-9) are available from certain API microversion.

That's why getting the API microversion is a prerequisite for implementation of such API calls.

So GET call to obtain Shared File Systems microversion is added.

In addition, newly created Shared File System ServiceClient has the microversion set.
Services like Nova and Manila require a client to fill HTTP header that contains the type of this service and microversion value because these services use microversions, i.e. certain requests are available from certain microversion.

That's why a func for creating such API Microversion HTTP header was added and this header is filled in HTTP Get, Post, Put, etc. methods.
@pospispa pospispa force-pushed the EndpointLocator-func-added-EndpointExtraInfo-into-return-args branch from 0867102 to 2cf0a75 Compare June 5, 2017 12:13
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 5, 2017

Coverage Status

Coverage decreased (-0.6%) to 69.49% when pulling 2cf0a75 on pospispa:EndpointLocator-func-added-EndpointExtraInfo-into-return-args into d8ccf0f on gophercloud:master.

@pospispa
Copy link
Copy Markdown
Contributor Author

pospispa commented Jun 5, 2017

Solution in #355 was chosen that's why this PR is closed without merge.

@pospispa pospispa closed this Jun 5, 2017
msheikh-wind pushed a commit to msheikh-wind/gophercloud that referenced this pull request May 19, 2025
* Reboot issue when insync is false

- Added annotation restore in progress
- insync, reconcile status and deployment scope
are captured in annotation
- Updated status in platform network contorller

Test plan:
- Install helm based DM with platform network in config file
- Helm based DM should be running
- Check all the crds, insync and reconciled should be true
- Set garbage values to annoatation deployment-manager/restore-in-
progress, reconcilation should not trigger
- Verify Generation == ObservedGeneration

Signed-off-by: mmanthir <mahalakshmi.manthiram@windriver.com>

* Reboot issue when insync is false

- Added annotation restore in progress
- insync, reconcile status and deployment scope
are captured in annotation
- Updated status in platform network contorller

Test plan:
- Install helm based DM with platform network in config file
- Helm based DM should be running
- Check all the crds, insync and reconciled should be true
- Set garbage values to annoatation deployment-manager/restore-in-
progress, reconcilation should not trigger
- Verify Generation == ObservedGeneration

Signed-off-by: mmanthir <mahalakshmi.manthiram@windriver.com>

* Restore DM Objects without Reconciliation During Upgrade

- Added annotation RestoreInProgress
- Implemented to restore dm objects without reconcilataion on platform
network, ptp instance controller, ptp interface controller, data
network, system and host controllers.

Test plan:
- Install helm based DM with platform network in config file
- Helm based DM should be running
- Check all the crds, insync and reconciled should be true
- Set garbage values to annotation deployment-manager/restore-in-
progress, reconcilation should not trigger
- Verify Generation == ObservedGeneration
- During restore whatever be the status/spec,  no reconciliation is expected
- After restore it should always attempt to reconcile (

Signed-off-by: mmanthir <mahalakshmi.manthiram@windriver.com>

---------

Signed-off-by: mmanthir <mahalakshmi.manthiram@windriver.com>
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

Successfully merging this pull request may close these issues.

2 participants