← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1494647] Re: attaching a duplicated network to a server succeed,but creating a server with duplicated networks fail

 

I have verified that kilo code can't create server with duplicated network. But I also verified that this problem is not in L's latest code.
And, this should be a nova constraint, not in neutron. So, I will close this as invalid.

Besides, I am wondering what's the actual usercase that one server will
have 2(or more) nics in one network.

** Changed in: neutron
       Status: New => Invalid

** Changed in: neutron
     Assignee: (unassigned) => Hong Hui Xiao (xiaohhui)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1494647

Title:
  attaching a duplicated network to a server succeed,but creating a
  server with duplicated networks fail

Status in neutron:
  Invalid

Bug description:
  kilo
  1.creating a server with duplicated networks fail

  [root@host]# neutron net-list
  | 6185c860-0a91-4139-a0a0-5a5bb94aebd8 | net_physnet1_2 | 649f0110-a6f9-4cca-a874-6933cabac779 102.1.1.0/24   |

  [root@host]# nova boot --flavor m1.tiny --image 49a15651-f664-4603-8548-772a25cd5c8b --nic net-id=6185c860-0a91-4139-a0a0-5a5bb94aebd8 --nic net-id=6185c860-0a91-4139-a0a0-5a5bb94aebd8 server1
  ERROR (BadRequest): Network 6185c860-0a91-4139-a0a0-5a5bb94aebd8 is duplicated. (HTTP 400) (Request-ID: req-6a161abf-e996-4f60-8304-ec566d803516)

  2.creating a server with a network succeed

  [root@host]# nova boot --flavor m1.tiny --image 49a15651-f664-4603-8548-772a25cd5c8b --nic net-id=6185c860-0a91-4139-a0a0-5a5bb94aebd8 server1
  +--------------------------------------+-----------------------------------------------------------------+
  | Property                             | Value                                                           |
  +--------------------------------------+-----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                          |
  | OS-EXT-AZ:availability_zone          | nova                                                            |
  | OS-EXT-SRV-ATTR:host                 | -                                                               |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                               |
  | OS-EXT-SRV-ATTR:instance_name        | instance-0000003c                                               |
  | OS-EXT-STS:power_state               | 0                                                               |
  | OS-EXT-STS:task_state                | scheduling                                                      |
  | OS-EXT-STS:vm_state                  | building                                                        |
  | OS-SRV-USG:launched_at               | -                                                               |
  | OS-SRV-USG:terminated_at             | -                                                               |
  | accessIPv4                           |                                                                 |
  | accessIPv6                           |                                                                 |
  | adminPass                            | b93q9Yu2dwtC                                                    |
  | config_drive                         |                                                                 |
  | created                              | 2015-09-11T07:59:01Z                                            |
  | flavor                               | m1.tiny (1)                                                     |
  | hostId                               |                                                                 |
  | id                                   | 2bf1c83f-382c-4d37-a3a2-538128436f17                            |
  | image                                | cirros-0.3.0-x86_64-disk (49a15651-f664-4603-8548-772a25cd5c8b) |
  | key_name                             | -                                                               |
  | metadata                             | {}                                                              |
  | name                                 | server1                                                         |
  | os-extended-volumes:volumes_attached | []                                                              |
  | progress                             | 0                                                               |
  | security_groups                      | default                                                         |
  | status                               | BUILD                                                           |
  | tenant_id                            | ef2eeb52ef0b472f823b622737874523                                |
  | updated                              | 2015-09-11T07:59:01Z                                            |
  | user_id                              | 891837e8347a4af3bec079fcaeb165e3                                |
  +--------------------------------------+-----------------------------------------------------------------+
  [root@host]# nova list
  +--------------------------------------+----------------+--------+------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | ID                                   | Name           | Status | Task State | Power State | Networks                                                                                                                                                        |
  +--------------------------------------+----------------+--------+------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | 2bf1c83f-382c-4d37-a3a2-538128436f17 | server1        | ACTIVE | -          | Running     | net_physnet1_2=102.1.1.4                                                                                                                                        |
  +--------------------------------------+----------------+--------+------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+

  [root@host]# nova interface-list server1
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+
  | Port State | Port ID                              | Net ID                               | IP addresses | MAC Addr          |
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+
  | ACTIVE     | 8949be12-61a2-4456-bff1-14af7a5d663a | 6185c860-0a91-4139-a0a0-5a5bb94aebd8 | 102.1.1.4    | fa:16:3e:2e:7b:e2 |
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+

  3.attaching a duplicated network to the server in step2 succeed

  [root@host]#  nova interface-attach server1 --net-id 6185c860-0a91-4139-a0a0-5a5bb94aebd8
  [root@host]# nova interface-list server1
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+
  | Port State | Port ID                              | Net ID                               | IP addresses | MAC Addr          |
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+
  | ACTIVE     | 8949be12-61a2-4456-bff1-14af7a5d663a | 6185c860-0a91-4139-a0a0-5a5bb94aebd8 | 102.1.1.4    | fa:16:3e:2e:7b:e2 |
  | ACTIVE     | dbe78390-0842-4ece-afc2-f19f6747c2eb | 6185c860-0a91-4139-a0a0-5a5bb94aebd8 | 102.1.1.5    | fa:16:3e:89:52:35 |
  +------------+--------------------------------------+--------------------------------------+--------------+-------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1494647/+subscriptions


References