[ironic] Create port with wrong MAC address

Bug #1524425 reported by Kyrylo Romanenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
Kyrylo Romanenko

Bug Description

We can create a port with some wrong or fake MAC address.

root@node-4:~# ironic port-create -n 13a0f41e-1b18-43c0-ac28-3174ceadfcc4 -a 00:00:00:00:00:01
+-----------+--------------------------------------+
| Property | Value |
+-----------+--------------------------------------+
| node_uuid | 13a0f41e-1b18-43c0-ac28-3174ceadfcc4 |
| extra | {} |
| uuid | 6cb6ea2b-3bbd-412b-8cb5-bbf6353e29ed |
| address | 00:00:00:00:00:01 |
+-----------+--------------------------------------+

I`m not sure is it OK that we can assign wrong MAC address for the port.

Env:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "243"
  build_id: "243"
  fuel-nailgun_sha: "1b6ae6c7fd4766f4a57d90afc1cd0f2315255a42"
  python-fuelclient_sha: "91474bd8c526f4f536ab13368feb4a5c1b84d185"
  fuel-agent_sha: "660c6514caa8f5fcd482f1cc4008a6028243e009"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "b60624ee2c5f1d6d805619b6c27965a973508da1"
  fuel-library_sha: "22ed1ebd7804457a02b51b57c7019d853c528611"
  fuel-ostf_sha: "a98973482f839554d90cc1c071d625a01e018cfe"
  fuel-mirror_sha: "5a1efffd411611b87cbd45af59b9733b7e170cd4"
  fuelmenu_sha: "fcb15df4fd1a790b17dd78cf675c11c279040941"
  shotgun_sha: "25a0cc461a9fa4f7684f04cef0ff4ad9aa99a64d"
  network-checker_sha: "a3534f8885246afb15609c54f91d3b23d599a5b1"
  fuel-upgrade_sha: "1e894e26d4e1423a9b0d66abd6a79505f4175ff6"
  fuelmain_sha: "ff6eec402830ea8aa9898249b5eeb928576962ff"

ironic client version 0.8.1

Tags: ironic
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Kyrylo, could you please elaborate here? What exactly is wrong with the suggested MAC address value ? It seems like a normal 6-byte integer value shown in hex notation to me.

Changed in mos:
assignee: MOS Ironic (mos-ironic) → Kyrylo Romanenko (kromanenko)
status: New → Incomplete
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Roman, I mean that address valid by it`s form but does not exist in network.

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Seems that it is expected behavior.

Changed in mos:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.