[openstack-dev] [zun] "--nets network=..." usage question
Hongbin Lu
hongbin.lu at huawei.com
Wed Jul 12 19:09:36 UTC 2017
Hi Greg,
This parameter has just been added to the CLI and it hasn’t been fully implemented yet. Sorry for the confusion. Here is how I expect this parameter to work:
1. Create from neutron network name:
$ zun run --name ctn-ping --nets network=private …
2. Create from neutron network uuid:
$ zun run --name ctn-ping --nets network=c59455d9-c103-4c05-b28c-a1f5d041d804 …
3. Create from neutron port uuid/name:
$ zun run --name ctn-ping --nets port=<port_name_or_uuid> …
4. Give me a network:
$ zun run --name ctn-ping --nets auto …
For now, please simply ignore this parameter. Zun will find a usable network under your tenant to boot the container.
Best regards,
Hongbin
From: Waines, Greg [mailto:Greg.Waines at windriver.com]
Sent: July-12-17 1:20 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] [zun] "--nets network=..." usage question
What is expected for the “--nets network=...” parameter on zun run or create ?
Is it the network name, the subnet name, the network uuid, the subnet uuid, ... I think I’ve tried them all and none work.
Full logs:
stack at devstack-zun:~/devstack$ neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+
| id | name | tenant_id | subnets |
+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+
| c1731d77-c849-4b6b-b5e9-85030c8c6b52 | public | dcea3cea809f40c1a53b85ec3522de36 | aec0bc66-fb6a-453b-93c7-d04537a6bb05 2001:db8::/64 |
| | | | 8c881229-982e-417b-bbaa-e86d6192afa6 172.24.4.0/24 |
| c59455d9-c103-4c05-b28c-a1f5d041d804 | private | c8398b3154094049960e86b3caba1a4a | e12679b1-87e6-42cf-a2fe-e0f954dbd15f fdac:1365:7242::/64 |
| | | | a1fc0a84-8cae-4193-8d33-711b612529b7 10.0.0.0/26 |
+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$ zun run --name ctn-ping --nets network=private cirros ping 8.8.8.8
...
stack at devstack-zun:~/devstack$ zun list
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
| 649724f6-2ccd-4b21-8684-8f6616228d86 | ctn-ping | cirros | Error | None | | [] |
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
stack at devstack-zun:~/devstack$ zun show ctn-ping | fgrep reason
| status_reason | Docker internal error: 404 Client Error: Not Found ("network private not found"). |
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$ zun delete ctn-ping
Request to delete container ctn-ping has been accepted.
stack at devstack-zun:~/devstack$
stack at devstack-zun:~/devstack$ zun run --name ctn-ping --nets network=c59455d9-c103-4c05-b28c-a1f5d041d804 cirros ping 8.8.8.8
...
stack at devstack-zun:~/devstack$ zun list
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
| 6093bdc2-d288-4ea9-a98b-3ca055318c9e | ctn-ping | cirros | Error | None | | [] |
+--------------------------------------+----------+--------+--------+------------+-----------+-------+
stack at devstack-zun:~/devstack$ zun show ctn-ping | fgrep reason
| status_reason | Docker internal error: 404 Client Error: Not Found ("network c59455d9-c103-4c05-b28c-a1f5d041d804 not found"). |
stack at devstack-zun:~/devstack$
Any ideas ?
Greg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170712/7ca85b51/attachment.html>
More information about the OpenStack-dev
mailing list