Not able to issue migration
See original GitHub issueHi everyone,
I’m trying to Live Migrate a very simple container (an empty alpine/edge one) though two different machines If I use the LXD cli interface the migration works pretty well But if I try using pylxd API I got some errors, the code is pretty simple:
from pylxd import Client
#client_local = Client()
client_local=Client(endpoint='https://127.0.0.1:8443',cert=('lxd.crt','lxd.key'),verify=False)
client_local.authenticate('fog')
client_remote=Client(endpoint='https://192.168.1.106:8443',cert=('lxd.crt','lxd.key'),verify=False)
print('Trusted {}'.format(client_remote.trusted))
client_remote.authenticate('fog')
print('Trusted {}'.format(client_remote.trusted))
cont = client_local.containers.get('testm')
cont.migrate(client_remote,wait=True)
I’m using endpoint
also for localhost otherwise I get
ValueError: Cannot migrate from a local client connection
The error that I get is this one:
Traceback (most recent call last):
File "migration.py", line 13, in <module>
cont.migrate(client_remote,wait=True)
File "/home/ubuntu/.local/lib/python3.5/site-packages/pylxd/models/container.py", line 267, in migrate
self.generate_migration_data(), wait=wait)
File "/home/ubuntu/.local/lib/python3.5/site-packages/pylxd/models/container.py", line 278, in generate_migration_data
operation = self.client.operations.get(response.json()['operation'])
File "/home/ubuntu/.local/lib/python3.5/site-packages/pylxd/models/operation.py", line 38, in get
return cls(_client=client, **response.json()['metadata'])
File "/home/ubuntu/.local/lib/python3.5/site-packages/pylxd/models/operation.py", line 43, in __init__
setattr(self, key, value)
AttributeError: 'Operation' object has no attribute 'description'
I’m misusing the API?
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Troubleshoot migration issues in Exchange hybrid
This troubleshooter will not help you with troubleshooting Staged, Cutover, or IMAP migrations. Were you able to initiate the mailbox move?
Read more >Microsoft Account Migration Issues and FAQ – Home
The migration from Mojang accounts to Microsoft accounts is a complex process and you may encounter issues or have some questions.
Read more >Troubleshoot the data migration service - Google Support
Non-blocking issues prevent some, but not all, messages from migrating. You might have message-level errors (where a single message hasn't migrated correctly) ...
Read more >Not able to migrate new table in laravel - Stack Overflow
Find your movie table migration (Database>Migrations) and change the date to any oldest date on the migration file so that it goes first...
Read more >Troubleshooting migration failure - Dell
If you continue to face issues, close Data Assistant on the old PC and SupportAssist on the new PC, and restart both the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I’m pretty sure that 2.2.5 has a fix to this; latest is 2.2.7, but it as an
execute
issue that I’m looking into that became much more apparent with lxd 3.0.2. lxd 3.2 has less of an issue, but if you use lots of ‘execute’ statements from pylxd, then 2.2.6 might be better until I fix the issue and get 2.2.8 out.@Oussalvatore thanks for the additional info. I’ll have to sort out a lab for testing this (it’s re-purposed at present), so any additional debug you can offer would be useful. e.g. does it work with straight lxc commands at the CLI, etc.