2015-11-25 10:24:51 |
HouMing Wang |
bug |
|
|
added bug |
2015-11-25 10:25:04 |
HouMing Wang |
magnum: assignee |
|
Hou Ming Wang (houming-wang) |
|
2015-11-25 10:26:49 |
HouMing Wang |
description |
Reproduce steps:
1. Create a baymodel with a valid fixed network
[houming@bogon devstack]$ magnum baymodel-create --name swarmbaymodel --master-flavor-id m1.small --image-id fedora-21-atomic-5 --keypair-id testkey --fixed-network private --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m1.small --docker-volume-size 5 --network-driver flannel --coe kubernetes
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| http_proxy | None |
| updated_at | None |
| master_flavor_id | m1.small |
| ssh_authorized_key | None |
| uuid | a0bee59e-fbc4-4887-ac96-fe7409744cb6 |
| no_proxy | None |
| https_proxy | None |
| tls_disabled | False |
| keypair_id | testkey |
| public | False |
| labels | {} |
| docker_volume_size | 5 |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-atomic |
| image_id | fedora-21-atomic-5 |
| registry_enabled | False |
| apiserver_port | None |
| name | swarmbaymodel |
| created_at | 2015-11-25T09:55:21+00:00 |
| network_driver | flannel |
| fixed_network | private |
| coe | kubernetes |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
+---------------------+--------------------------------------+
2. Create a bay with this baymodel with 400 Bad Request:
[houming@bogon devstack]$ magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 2
ERROR: Bad Request (HTTP 400)
In m-cond.log:
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher raise exception.InvalidParameterValue(message=str(e))
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] Returning exception ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private to caller
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', ' File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create\n raise exception.InvalidParameterValue(message=str(e))\n', "InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private \n"]
In magnum.conductor.template_definition.BaseTemplateDefinition.__init__, we can see that bay model's 'fixed_network' is mapped to heat's 'fixed_network_cidr':
self.add_parameter('fixed_network_cidr',
baymodel_attr='fixed_network')
we should fix this to avoid bay-creation fails and misunderstanding. |
Reproduce steps:
1. Create a baymodel with a valid fixed network
[houming@bogon devstack]$ magnum baymodel-create --name swarmbaymodel --master-flavor-id m1.small --image-id fedora-21-atomic-5 --keypair-id testkey --fixed-network private --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m1.small --docker-volume-size 5 --network-driver flannel --coe kubernetes
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| http_proxy | None |
| updated_at | None |
| master_flavor_id | m1.small |
| ssh_authorized_key | None |
| uuid | a0bee59e-fbc4-4887-ac96-fe7409744cb6 |
| no_proxy | None |
| https_proxy | None |
| tls_disabled | False |
| keypair_id | testkey |
| public | False |
| labels | {} |
| docker_volume_size | 5 |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-atomic |
| image_id | fedora-21-atomic-5 |
| registry_enabled | False |
| apiserver_port | None |
| name | swarmbaymodel |
| created_at | 2015-11-25T09:55:21+00:00 |
| network_driver | flannel |
| fixed_network | private |
| coe | kubernetes |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
+---------------------+--------------------------------------+
2. Create a bay with this baymodel, 400 Bad Request returned:
[houming@bogon devstack]$ magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 2
ERROR: Bad Request (HTTP 400)
We can see a In m-cond.log:
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher raise exception.InvalidParameterValue(message=str(e))
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] Returning exception ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private to caller
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', ' File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create\n raise exception.InvalidParameterValue(message=str(e))\n', "InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private \n"]
How to fix:
In magnum.conductor.template_definition.BaseTemplateDefinition.__init__, we can see that bay model's 'fixed_network' is mapped to heat's 'fixed_network_cidr':
self.add_parameter('fixed_network_cidr',
baymodel_attr='fixed_network')
we should fix this to avoid bay-creation fails and misunderstanding. |
|
2015-11-25 10:28:40 |
HouMing Wang |
description |
Reproduce steps:
1. Create a baymodel with a valid fixed network
[houming@bogon devstack]$ magnum baymodel-create --name swarmbaymodel --master-flavor-id m1.small --image-id fedora-21-atomic-5 --keypair-id testkey --fixed-network private --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m1.small --docker-volume-size 5 --network-driver flannel --coe kubernetes
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| http_proxy | None |
| updated_at | None |
| master_flavor_id | m1.small |
| ssh_authorized_key | None |
| uuid | a0bee59e-fbc4-4887-ac96-fe7409744cb6 |
| no_proxy | None |
| https_proxy | None |
| tls_disabled | False |
| keypair_id | testkey |
| public | False |
| labels | {} |
| docker_volume_size | 5 |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-atomic |
| image_id | fedora-21-atomic-5 |
| registry_enabled | False |
| apiserver_port | None |
| name | swarmbaymodel |
| created_at | 2015-11-25T09:55:21+00:00 |
| network_driver | flannel |
| fixed_network | private |
| coe | kubernetes |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
+---------------------+--------------------------------------+
2. Create a bay with this baymodel, 400 Bad Request returned:
[houming@bogon devstack]$ magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 2
ERROR: Bad Request (HTTP 400)
We can see a In m-cond.log:
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher raise exception.InvalidParameterValue(message=str(e))
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] Returning exception ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private to caller
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', ' File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create\n raise exception.InvalidParameterValue(message=str(e))\n', "InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private \n"]
How to fix:
In magnum.conductor.template_definition.BaseTemplateDefinition.__init__, we can see that bay model's 'fixed_network' is mapped to heat's 'fixed_network_cidr':
self.add_parameter('fixed_network_cidr',
baymodel_attr='fixed_network')
we should fix this to avoid bay-creation fails and misunderstanding. |
Reproduce steps:
1. Create a baymodel with a valid fixed network
[houming@bogon devstack]$ magnum baymodel-create --name swarmbaymodel --master-flavor-id m1.small --image-id fedora-21-atomic-5 --keypair-id testkey --fixed-network private --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m1.small --docker-volume-size 5 --network-driver flannel --coe kubernetes
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| http_proxy | None |
| updated_at | None |
| master_flavor_id | m1.small |
| ssh_authorized_key | None |
| uuid | a0bee59e-fbc4-4887-ac96-fe7409744cb6 |
| no_proxy | None |
| https_proxy | None |
| tls_disabled | False |
| keypair_id | testkey |
| public | False |
| labels | {} |
| docker_volume_size | 5 |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-atomic |
| image_id | fedora-21-atomic-5 |
| registry_enabled | False |
| apiserver_port | None |
| name | swarmbaymodel |
| created_at | 2015-11-25T09:55:21+00:00 |
| network_driver | flannel |
| fixed_network | private |
| coe | kubernetes |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
+---------------------+--------------------------------------+
2. Create a bay with this baymodel, 400 Bad Request returned:
[houming@bogon devstack]$ magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 2
ERROR: Bad Request (HTTP 400)
We can see an "InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private" exception in m-cond.log:
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher raise exception.InvalidParameterValue(message=str(e))
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private
2015-11-25 18:18:19.216 TRACE oslo_messaging.rpc.dispatcher
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] Returning exception ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private to caller
2015-11-25 18:18:19.216 ERROR oslo_messaging._drivers.common [req-d79d79f7-b473-48a8-a97a-77f8b69b5a72 admin demo] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', ' File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 137, in bay_create\n raise exception.InvalidParameterValue(message=str(e))\n', "InvalidParameterValue: ERROR: Property error: : resources.fixed_subnet.properties.cidr: : Error validating value 'private': Invalid net cidr invalid IPNetwork private \n"]
In magnum.conductor.template_definition.BaseTemplateDefinition.__init__, we can see that bay model's 'fixed_network' is mapped to heat's 'fixed_network_cidr':
self.add_parameter('fixed_network_cidr',
baymodel_attr='fixed_network')
we should fix this to avoid bay-creation fails and misunderstanding. |
|
2015-12-02 07:15:38 |
OpenStack Infra |
magnum: status |
New |
In Progress |
|