Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAC address mapping is not working #113

Closed
milangroshev opened this issue Jun 26, 2019 · 2 comments
Closed

MAC address mapping is not working #113

milangroshev opened this issue Jun 26, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@milangroshev
Copy link

Deploying containers using LXD plugin with static MAC address is not working. The key "mac_address" from the descriptor is not taken into account when creating the containers.

By defining the "mac_address" in the descriptor i would have expected that specific interface of the deployed container would get the pre-defined MAC address.

Example of descriptor containing the mac_address key:

"uuid": "3b4251a7-468f-4d64-b78c-8e2dfd9451e3",
"name": "hostapd0",
"computation_requirements": {
    "cpu_arch": "x86_64",
    "cpu_min_freq": 0.0,
    "cpu_min_count": 1,
    "ram_size_mb": 128.0,
    "storage_size_gb": 5.0
},
"image": {
    "uri": "file:///home/netcom/repository/hostapd.tar.gz",
    "checksum": "26eda4b4bae4dad871ec9fab9c51af3d3517e8db5256af1d1bbc743a4ff4d8ac",
    "format": "tar.gz"
},
"hypervisor": "LXD",
"migration_kind": "LIVE",
"depends_on": [],
"interfaces": [
    {
        "name": "mgmt",
        "is_mgmt": false,
        "if_type": "INTERNAL",
        "mac_address": "be:ef:be:ef:00:02",
        "virtual_interface": {
            "intf_type": "VIRTIO",
            "vpci": "0:0:0",
            "bandwidth": 10
        },
        "cp_id": "2192bb19-a3f7-4b59-9473-eeec9573fb3b"
    },
    {
        "name": "wlan0",
        "is_mgmt": false,
        "if_type": "EXTERNAL",
        "mac_address": "be:ef:be:ef:b0:01",
        "virtual_interface": {
            "intf_type": "PHYSICAL",
            "vpci": "wlan0",
            "bandwidth": 10
        },
        "cp_id": ""
    }
],
"io_ports": [],
"connection_points": [
    {
        "uuid": "2192bb19-a3f7-4b59-9473-eeec9573fb3b",
        "pair_id": "6cc2aa30-1dcf-4c93-a57e-433fd0bd498e"
    }
]

}

  • OS: Ubuntu
  • Version 16.04
  • Involved plugin LXD
  • LXD version: 3.14
  • pylxd: 2.2.10
@milangroshev milangroshev added the bug Something isn't working label Jun 26, 2019
@gabrik gabrik self-assigned this Jun 26, 2019
@gabrik
Copy link
Contributor

gabrik commented Jun 26, 2019

Thanks @milangroshev for this report, you are right, even if the code for taking that in account is in place it is not working.

I'm working on this, should be part of my next PR.

@gabrik
Copy link
Contributor

gabrik commented Jun 26, 2019

#114 should have solved this
waiting user confirmation

@gabrik gabrik closed this as completed Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants