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

Add DS attribute to HOST.HOST_SHARE.DATASTORES in the XML schema #6630

Closed
2 of 3 tasks
ms4ons opened this issue Jun 25, 2024 · 0 comments
Closed
2 of 3 tasks

Add DS attribute to HOST.HOST_SHARE.DATASTORES in the XML schema #6630

ms4ons opened this issue Jun 25, 2024 · 0 comments

Comments

@ms4ons
Copy link
Contributor

ms4ons commented Jun 25, 2024

Description
The attribute DS is missing in the XML schema. It should be under HOST.HOST_SHARE.DATASTORES.
That affects the generation of pyone.bindings and the attribute .DS is missing there as well.

To Reproduce
With pyone:

>>> import pyone
>>> one = pyone.OneServer('http://localhost:2633/RPC2', session='...')
>>> one.host.info(0).HOST_SHARE.DATASTORES
<pyone.bindings.DATASTORESType33Sub at 0x7a697f568650>
>>> one.host.info(0).HOST_SHARE.DATASTORES.DS
---------------------------------------------------------------------------
...
AttributeError: 'DATASTORESType33Sub' object has no attribute 'DS'

Expected behavior

>>> import pyone
>>> one = pyone.OneServer('http://localhost:2633/RPC2', session='...')
>>> one.host.info(0).HOST_SHARE.DATASTORES
<pyone.bindings.DATASTORESType33Sub at 0x7a697f568650>
>>> one.host.info(0).HOST_SHARE.DATASTORES.DS
<pyone.bindings.DSTypeSub at 0x702d87b2df50>
>>> one.host.info(0).HOST_SHARE.DATASTORES.DS.ID
0

Details

  • Affected Component: pyone

Additional context
After the schema is updated, users will need to delete pyone.bindings and generate it again. It might be necessary to reinstall pyone.

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@tinova tinova added this to the Release 6.10.0 milestone Jun 25, 2024
@1gramos 1gramos self-assigned this Jun 26, 2024
1gramos added a commit to OpenNebula/docs that referenced this issue Jun 27, 2024
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
1gramos added a commit to OpenNebula/docs that referenced this issue Jun 27, 2024
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Jun 28, 2024
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Jun 28, 2024
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants