Bug 1848482 - [OSP16.1][Routed-provider-networks]Vm creation over ports isn't working properly
Summary: [OSP16.1][Routed-provider-networks]Vm creation over ports isn't working properly
Keywords:
Status: CLOSED DUPLICATE of bug 1761903
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bernard Cafarelli
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks: 1671811
TreeView+ depends on / blocked
 
Reported: 2020-06-18 12:50 UTC by Candido Campos
Modified: 2021-03-15 15:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-15 15:05:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Candido Campos 2020-06-18 12:50:13 UTC
Description of problem:
Vm creation over ports isn't working properly

Version-Release number of selected component (if applicable):


How reproducible:




(overcloud) [stack@site-undercloud-0 scripts]$ openstack server create --flavor cirros --image cirros   --nic port-id=port1 --security-group test --key-name mykey vm6
+-------------------------------------+----------------------------------------------------------------------------------+
| Field                               | Value                                                                            |
+-------------------------------------+----------------------------------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                                           |
| OS-EXT-AZ:availability_zone         |                                                                                  |
| OS-EXT-SRV-ATTR:host                | None                                                                             |
| OS-EXT-SRV-ATTR:hostname            | vm6                                                                              |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                                                             |
| OS-EXT-SRV-ATTR:instance_name       |                                                                                  |
| OS-EXT-SRV-ATTR:kernel_id           |                                                                                  |
| OS-EXT-SRV-ATTR:launch_index        | 0                                                                                |
| OS-EXT-SRV-ATTR:ramdisk_id          |                                                                                  |
| OS-EXT-SRV-ATTR:reservation_id      | r-xeqye9x5                                                                       |
| OS-EXT-SRV-ATTR:root_device_name    | None                                                                             |
| OS-EXT-SRV-ATTR:user_data           | None                                                                             |
| OS-EXT-STS:power_state              | NOSTATE                                                                          |
| OS-EXT-STS:task_state               | scheduling                                                                       |
| OS-EXT-STS:vm_state                 | building                                                                         |
| OS-SRV-USG:launched_at              | None                                                                             |
| OS-SRV-USG:terminated_at            | None                                                                             |
| accessIPv4                          |                                                                                  |
| accessIPv6                          |                                                                                  |
| addresses                           |                                                                                  |
| adminPass                           | y2UjzKYXbk3B                                                                     |
| config_drive                        |                                                                                  |
| created                             | 2020-06-06T22:39:59Z                                                             |
| description                         | None                                                                             |
| flavor                              | disk='1', ephemeral='0', , original_name='cirros', ram='64', swap='0', vcpus='1' |
| hostId                              |                                                                                  |
| host_status                         |                                                                                  |
| id                                  | 8bc873fe-1374-49bf-8c25-6e330b7f9ba2                                             |
| image                               | cirros (d561673c-1a33-4d57-826f-5f9c619ba9f3)                                    |
| key_name                            | mykey                                                                            |
| locked                              | False                                                                            |
| locked_reason                       | None                                                                             |
| name                                | vm6                                                                              |
| progress                            | 0                                                                                |
| project_id                          | 54ae30d8228c45788bac3ad2bae54a78                                                 |
| properties                          |                                                                                  |
| security_groups                     | name='32a1645e-91e6-485e-82e6-777ba4540cd4'                                      |
| server_groups                       | []                                                                               |
| status                              | BUILD                                                                            |
| tags                                | []                                                                               |
| trusted_image_certificates          | None                                                                             |
| updated                             | 2020-06-06T22:39:59Z                                                             |
| user_id                             | ff31704f5e5a44d19ec746792e389e26                                                 |
| volumes_attached                    |                                                                                  |
+-------------------------------------+----------------------------------------------------------------------------------+
(overcloud) [stack@site-undercloud-0 scripts]$ openstack server list 
+--------------------------------------+------+--------+--------------------+--------+--------+
| ID                                   | Name | Status | Networks           | Image  | Flavor |
+--------------------------------------+------+--------+--------------------+--------+--------+
| 8bc873fe-1374-49bf-8c25-6e330b7f9ba2 | vm6  | ERROR  |                    | cirros |        |

Comment 2 Candido Campos 2020-06-18 13:24:22 UTC
The vm es created if the destination compute is configured in the creation command, but it should be selected automatically in the correct segment for the subnet:

openstack port create --fixed-ip subnet=subnet2_public --network public port1
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                            |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                               |
| allowed_address_pairs   |                                                                                                                                                                  |
| binding_host_id         |                                                                                                                                                                  |
| binding_profile         |                                                                                                                                                                  |
| binding_vif_details     |                                                                                                                                                                  |
| binding_vif_type        | unbound                                                                                                                                                          |
| binding_vnic_type       | normal                                                                                                                                                           |
| created_at              | 2020-06-06T22:39:20Z                                                                                                                                             |
| data_plane_status       | None                                                                                                                                                             |
| description             |                                                                                                                                                                  |
| device_id               |                                                                                                                                                                  |
| device_owner            |                                                                                                                                                                  |
| dns_assignment          | fqdn='host-10-0-20-130.openstackgate.local.', hostname='host-10-0-20-130', ip_address='10.0.20.130'                                                              |
| dns_domain              | None                                                                                                                                                             |
| dns_name                |                                                                                                                                                                  |
| extra_dhcp_opts         |                                                                                                                                                                  |
| fixed_ips               | ip_address='10.0.20.130', subnet_id='a8ed5233-7a94-4635-9ea9-39687897816a'                                                                                       |
| id                      | a1ce07c5-db5f-4e5e-b480-3ee949bd7ee6                                                                                                                             |
| location                | cloud='', project.domain_id=, project.domain_name='Default', project.id='54ae30d8228c45788bac3ad2bae54a78', project.name='admin', region_name='regionOne', zone= |
| mac_address             | fa:16:3e:74:62:5c                                                                                                                                                |
| name                    | port1                                                                                                                                                            |
| network_id              | a381dd94-9654-4a8a-8223-a34112e130ae                                                                                                                             |
| port_security_enabled   | True                                                                                                                                                             |
| project_id              | 54ae30d8228c45788bac3ad2bae54a78                                                                                                                                 |
| propagate_uplink_status | None                                                                                                                                                             |
| qos_policy_id           | None                                                                                                                                                             |
| resource_request        | None                                                                                                                                                             |
| revision_number         | 1                                                                                                                                                                |
| security_group_ids      | cf8262e5-e9dd-4502-a492-091657359cca                                                                                                                             |
| status                  | DOWN                                                                                                                                                             |
| tags                    |                                                                                                                                                                  |
| trunk_details           | None                                                                                                                                                             |
| updated_at              | 2020-06-06T22:39:20Z                                                                                                                                             |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment 3 Bernard Cafarelli 2020-06-19 14:05:56 UTC
In nova scheduling, changes added by routed network led to 4 use cases (Barcelone summit presentation):
User requests                             - Scheduler places instance at:
Boot with port id. Port has no IP address - Any segment with available ip addresses
Boot with port id. Port has IP address    - Segment with subnet containing ip address
Boot with network id                      - Any segment with available ip addresses
Instance move                             - Segment with subnet containing ip address

We saw here that case number 2 caused VM creation error, though case 3 worked fine
This will be retested with availability zones, which are in reference architecture and are used in DCN/spine&leaf deployments

Comment 4 Rodolfo Alonso 2021-03-15 15:05:39 UTC

*** This bug has been marked as a duplicate of bug 1761903 ***


Note You need to log in before you can comment on or make changes to this bug.