Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. [root@nailgun ~]# fuel --f
  2. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  3. api: '1.0'
  4. astute_sha: 53c86cba593ddbac776ce5a3360240274c20738c
  5. auth_required: true
  6. build_id: '257'
  7. build_number: '257'
  8. feature_groups:
  9. - mirantis
  10. fuel-agent_sha: 1e8f38bbb864ed99aa8fe862b6367e82afec3263
  11. fuel-library_sha: bc04a7092d92400c79e6ea6ede25e7b67c6a6355
  12. fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
  13. fuel-ostf_sha: 644db51186dc23c9b27e9b5486c120c8363dc87c
  14. fuelmain_sha: 0e54d68392b359bc122e5bbba9249c729eeaf579
  15. nailgun_sha: 3189ccfb8c1dac888e351f535b03bdbc9d392406
  16. openstack_version: 2015.1.0-7.0
  17. production: docker
  18. python-fuelclient_sha: 9643fa07f1290071511066804f962f62fe27b512
  19. release: '7.0'
  20. release_versions:
  21. 2015.1.0-7.0:
  22. VERSION:
  23. api: '1.0'
  24. astute_sha: 53c86cba593ddbac776ce5a3360240274c20738c
  25. build_id: '257'
  26. build_number: '257'
  27. feature_groups:
  28. - mirantis
  29. fuel-agent_sha: 1e8f38bbb864ed99aa8fe862b6367e82afec3263
  30. fuel-library_sha: bc04a7092d92400c79e6ea6ede25e7b67c6a6355
  31. fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
  32. fuel-ostf_sha: 644db51186dc23c9b27e9b5486c120c8363dc87c
  33. fuelmain_sha: 0e54d68392b359bc122e5bbba9249c729eeaf579
  34. nailgun_sha: 3189ccfb8c1dac888e351f535b03bdbc9d392406
  35. openstack_version: 2015.1.0-7.0
  36. production: docker
  37. python-fuelclient_sha: 9643fa07f1290071511066804f962f62fe27b512
  38. release: '7.0'
  39.  
  40. 1. I get error when I try to set new name
  41.  
  42. [root@nailgun ~]# fuel network-group --create --node-group 1 --name "new network" --release 2 --vlan 100 --cidr 10.0.0.0/24
  43. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  44. Network group new network has been created
  45. [root@nailgun ~]# fuel network-group list
  46. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  47. id | name | vlan_start | cidr | gateway | group_id
  48. ---|---------------|------------|----------------|-------------|---------
  49. 1 | fuelweb_admin | None | 10.177.30.0/24 | 10.177.30.1 | None
  50. 3 | management | 101 | 192.168.0.0/24 | None | 1
  51. 4 | storage | 102 | 192.168.1.0/24 | None | 1
  52. 5 | private | None | None | None | 1
  53. 2 | public | None | 10.177.31.0/24 | 10.177.31.1 | 1
  54. 6 | new network | 100 | 10.0.0.0/24 | None | 1
  55.  
  56. [root@nailgun ~]# fuel network-group --set --network 6 --name new_name
  57. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  58. 500 Server Error: Internal Server Error (Traceback (most recent call last):
  59. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/handlers/base.py", line 166, in checked_data
  60. valid_data = method(data, **kwargs)
  61. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/validators/network.py", line 524, in validate_update
  62. valid_data = cls.validate(data)
  63. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/validators/network.py", line 505, in validate
  64. node_group = objects.NodeGroup.get_by_uid(d.get('group_id'))
  65. File "/usr/lib/python2.6/site-packages/nailgun/objects/base.py", line 88, in get_by_uid
  66. res = q.get(uid)
  67. File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/query.py", line 798, in get
  68. if len(ident) != len(mapper.primary_key):
  69. TypeError: object of type 'NoneType' has no len()
  70. )
  71.  
  72. [root@nailgun ~]# fuel network-group --set --network 200 --name "n234234"
  73. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  74. 404 Client Error: Not Found (NetworkGroup not found)
  75. [root@nailgun ~]# fuel network-group --set --network 2 --name "n234234"
  76. DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
  77. 500 Server Error: Internal Server Error (Traceback (most recent call last):
  78. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/handlers/base.py", line 166, in checked_data
  79. valid_data = method(data, **kwargs)
  80. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/validators/network.py", line 524, in validate_update
  81. valid_data = cls.validate(data)
  82. File "/usr/lib/python2.6/site-packages/nailgun/api/v1/validators/network.py", line 505, in validate
  83. node_group = objects.NodeGroup.get_by_uid(d.get('group_id'))
  84. File "/usr/lib/python2.6/site-packages/nailgun/objects/base.py", line 88, in get_by_uid
  85. res = q.get(uid)
  86. File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/query.py", line 798, in get
  87. if len(ident) != len(mapper.primary_key):
  88. TypeError: object of type 'NoneType' has no len()
  89. )
  90.  
  91. 2. We should shift command example for "--set" in "fuel network-group help"
  92.  
  93. root@nailgun ~]# fuel network-group help
  94. ...
  95. To filter them by node group:
  96. fuel network-group --node-group 1
  97.  
  98. Set parameters for the specified network group:
  99. fuel network-group --set --network 1 --name new_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement