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

Copying a Container from Host 1 to Host 2 - containers on both hosts get same IP address #19

Open
bmullan opened this issue Jul 5, 2019 · 9 comments
Labels
bug Something isn't working

Comments

@bmullan
Copy link

bmullan commented Jul 5, 2019

Describe the bug
On Host 1 I stopped container CN1
Then clicked COPY button and specified Host 2 with Container name CN1
When the copy was completed I notice the CN1 on Host 2 had the same IP as the CN1
on Host 1!

NOTE 1:
this was copying the actual container on Host 1 to Host 2 NOT copying a Snapshot from Host 1 to a container on Host 2.

Expected behavior
Copying a container from Host 1 to Host 2... the new container on Host 2 should get a new IP address.. not a duplicated one.

Screenshots
In the following:
Host CIAB = host with LXDMosaic on it and the original CN1 container
Host CIAB2 = the host I copied the original CN1 container TO.

mosaic1

NOTE 2:
If I manually copy Host1 CN1 to Host2 CN1 ... the Host 2 CN1 does get a new IP address:

bmullan@ciab:~$ lxc copy cn1 ciab2:cn1

mosaic1

Desktop (please complete the following information):
ubuntu 18.04.2 for all Hosts and containers

@turtle0x1
Copy link
Owner

How are you getting ip addresses, lxd dhcp?

@bmullan
Copy link
Author

bmullan commented Jul 5, 2019 via email

@turtle0x1
Copy link
Owner

Ive run into an error I can't debug ive opened an issue on the lxd project. I could just being a idiot but I currently can't copy containers between two hosts!

@bmullan
Copy link
Author

bmullan commented Jul 5, 2019 via email

@turtle0x1
Copy link
Owner

Works from the CLI its annoying

@turtle0x1
Copy link
Owner

I cant duplicate this can you check its still happening ?

@bmullan
Copy link
Author

bmullan commented Jul 5, 2019 via email

@turtle0x1 turtle0x1 added the bug Something isn't working label Feb 16, 2020
@turtle0x1
Copy link
Owner

@bmullan hey, been a while, hope your well!

This is actually expected behaviour according to stgraber, cleared this up in the following post;

https://discuss.linuxcontainers.org/t/extend-profile-with-container-specific-settings/8985/4

Sorry it took +1 year to resolve 😆

@turtle0x1
Copy link
Owner

Wait, Im wrong

@turtle0x1 turtle0x1 reopened this Oct 3, 2020
@turtle0x1 turtle0x1 transferred this issue from turtle0x1/LxdMosaic Sep 13, 2022
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