← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1940894] [NEW] network_data in metadata service not the same with network_data from configdrive when set ironic portgroup

 

Public bug reported:

When i use nova to boot a ironic instance and use portgroup to make nic
bonds,I found network_data in metadata service is not the same with
network_data from configdrive.


Cloud-init can only use the network_data from configdrive to  make nic bonds.

I think the network_data.json from metadata and network_data.json from
configdrive should be the same.

network_data from metadata service

{
	"link": [{
			"id": "tap9997f2061-e3",
			"vif_id": "997f2062-e352-410e-b7d4-1f63cc1b01ee",
			"type": "phy",
			"mtu": "1500",
			"ethernet_mac_address": "b4:05:5d:15:f9:3e"
		}
	],
	"networks": [{
			"id": "network0",
			"type": "ipv6_dhcp",
			"link": "tap9997f2061-e3",
			"network_id": "27c2c6b3-d6eb-4c8d-8ae4-f630a218748d",
		}
	],
	"services": []
}

network_data from configdrive
{
	"link": [{
			"id": "tap9997f2061-e3",
			"vif_id": "997f2062-e352-410e-b7d4-1f63cc1b01ee",
			"type": "bond",
			"mtu": "1500",
			"ethernet_mac_address": "b4:05:5d:15:f9:3e",
			"bond_mode": "802.3ad",
			"bond_links": ["038f035a-31ca-488e-abfb-24c45c25920e", "32da47cc-ddee-4987-9ea7-682a0d8369aa"],
			"bond_miimon": 100
		}, {
			"id": "038f035a-31ca-488e-abfb-24c45c25920e",
			"type": "phy",
			"ethernet_mac_address": "b4:05:5d:15:f9:3e"
		}, {
			"id": "32da47cc-ddee-4987-9ea7-682a0d8369aa",
			"type": "phy",
			"ethernet_mac_address": "b4:05:5d:15:f9:3f"
		}
	],
	"networks": [{
			"id": "network0",
			"type": "ipv6_dhcp",
			"link": "tap9997f2061-e3",
			"network_id": "27c2c6b3-d6eb-4c8d-8ae4-f630a218748d",
		}
	],
	"services": []
}

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: ironic metadata nova

** Attachment added: "nicbond-matadata.png"
   https://bugs.launchpad.net/bugs/1940894/+attachment/5520087/+files/nicbond-matadata.png

** Tags added: nova

** Tags added: ironic metadata

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1940894

Title:
  network_data in metadata service  not the same with network_data from
  configdrive when set ironic portgroup

Status in OpenStack Compute (nova):
  New

Bug description:
  When i use nova to boot a ironic instance and use portgroup to make
  nic bonds,I found network_data in metadata service is not the same
  with network_data from configdrive.

  
  Cloud-init can only use the network_data from configdrive to  make nic bonds.

  I think the network_data.json from metadata and network_data.json from
  configdrive should be the same.

  network_data from metadata service

  {
  	"link": [{
  			"id": "tap9997f2061-e3",
  			"vif_id": "997f2062-e352-410e-b7d4-1f63cc1b01ee",
  			"type": "phy",
  			"mtu": "1500",
  			"ethernet_mac_address": "b4:05:5d:15:f9:3e"
  		}
  	],
  	"networks": [{
  			"id": "network0",
  			"type": "ipv6_dhcp",
  			"link": "tap9997f2061-e3",
  			"network_id": "27c2c6b3-d6eb-4c8d-8ae4-f630a218748d",
  		}
  	],
  	"services": []
  }

  network_data from configdrive
  {
  	"link": [{
  			"id": "tap9997f2061-e3",
  			"vif_id": "997f2062-e352-410e-b7d4-1f63cc1b01ee",
  			"type": "bond",
  			"mtu": "1500",
  			"ethernet_mac_address": "b4:05:5d:15:f9:3e",
  			"bond_mode": "802.3ad",
  			"bond_links": ["038f035a-31ca-488e-abfb-24c45c25920e", "32da47cc-ddee-4987-9ea7-682a0d8369aa"],
  			"bond_miimon": 100
  		}, {
  			"id": "038f035a-31ca-488e-abfb-24c45c25920e",
  			"type": "phy",
  			"ethernet_mac_address": "b4:05:5d:15:f9:3e"
  		}, {
  			"id": "32da47cc-ddee-4987-9ea7-682a0d8369aa",
  			"type": "phy",
  			"ethernet_mac_address": "b4:05:5d:15:f9:3f"
  		}
  	],
  	"networks": [{
  			"id": "network0",
  			"type": "ipv6_dhcp",
  			"link": "tap9997f2061-e3",
  			"network_id": "27c2c6b3-d6eb-4c8d-8ae4-f630a218748d",
  		}
  	],
  	"services": []
  }

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