salt: salt-cloud can't serialize azure.mgmt.compute.models.virtual_hard_disk.VirtualHardDisk object

Description of Issue/Question

When I try to run salt-cloud -p to provision a VM using driver “azurearm”, I run into the following error message:

TypeError: can’t serialize <azure.mgmt.compute.models.virtual_hard_disk.VirtualHardDisk object at 0x7f7cf254b690>

Trace:

[INFO ] Rendering deploy script: /usr/lib/python2.7/dist-packages/salt/cloud/deploy/bootstrap-salt.sh [DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc [ERROR ] There was a profile error: can’t serialize <azure.mgmt.compute.models.virtual_hard_disk.VirtualHardDisk object at 0x7f7cf254b690> Traceback (most recent call last): File “/usr/lib/python2.7/dist-packages/salt/cloud/cli.py”, line 281, in run self.config.get(‘names’) File “/usr/lib/python2.7/dist-packages/salt/cloud/init.py”, line 1454, in run_profile ret[name] = self.create(vm_) File “/usr/lib/python2.7/dist-packages/salt/cloud/init.py”, line 1284, in create output = self.cloudsfunc File “/usr/lib/python2.7/dist-packages/salt/cloud/clouds/azurearm.py”, line 1305, in create ret = utils[‘cloud.bootstrap’](vm_, opts) File “/usr/lib/python2.7/dist-packages/salt/utils/cloud.py”, line 553, in bootstrap transport=opts.get(‘transport’, ‘zeromq’) File “/usr/lib/python2.7/dist-packages/salt/utils/cloud.py”, line 1786, in fire_event event.fire_event(args, tag) File “/usr/lib/python2.7/dist-packages/salt/utils/event.py”, line 718, in fire_event dump_data = self.serial.dumps(data) File “/usr/lib/python2.7/dist-packages/salt/payload.py”, line 213, in dumps return msgpack.dumps(msg, default=ext_type_encoder, use_bin_type=use_bin_type) File “/usr/lib/python2.7/dist-packages/msgpack/init.py”, line 47, in packb return Packer(**kwargs).pack(o) File “msgpack/_packer.pyx”, line 223, in msgpack._packer.Packer.pack (msgpack/_packer.cpp:223) File “msgpack/_packer.pyx”, line 225, in msgpack._packer.Packer.pack (msgpack/_packer.cpp:225) File “msgpack/_packer.pyx”, line 184, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:184) File “msgpack/_packer.pyx”, line 184, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:184) File “msgpack/_packer.pyx”, line 184, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:184) File “msgpack/_packer.pyx”, line 213, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:213) File “msgpack/_packer.pyx”, line 184, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:184) File “msgpack/_packer.pyx”, line 220, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:220) TypeError: can’t serialize <azure.mgmt.compute.models.virtual_hard_disk.VirtualHardDisk object at 0x7f7cf254b690>

Setup

Salt-Cloud 2018.3.0 on Ubuntu 16.04

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

Salt Version: Salt: 2018.3.0

Dependency Versions: cffi: 1.11.2 cherrypy: Not Installed dateutil: 2.6.1 docker-py: Not Installed gitdb: 0.6.4 gitpython: 1.0.1 ioflo: Not Installed Jinja2: 2.8 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: 1.0.3 msgpack-pure: Not Installed msgpack-python: 0.4.6 mysql-python: Not Installed pycparser: 2.18 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.12 (default, Dec 4 2017, 14:50:18) python-gnupg: Not Installed PyYAML: 3.11 PyZMQ: 15.2.0 RAET: Not Installed smmap: 0.9.0 timelib: Not Installed Tornado: 4.2.1 ZMQ: 4.1.4

System Versions: dist: Ubuntu 16.04 xenial locale: UTF-8 machine: x86_64 release: 4.4.0-119-generic system: Linux version: Ubuntu 16.04 xenial


pip freeze

azure==2.0.0rc6 azure-batch==1.0.0 azure-batch-extensions==1.0.1 azure-cli==2.0.23 azure-cli-acr==2.0.17 azure-cli-acs==2.0.22 azure-cli-advisor==0.1.0 azure-cli-appservice==0.1.22 azure-cli-backup==1.0.3 azure-cli-batch==3.1.7 azure-cli-batchai==0.1.3 azure-cli-billing==0.1.6 azure-cli-cdn==0.0.10 azure-cli-cloud==2.0.10 azure-cli-cognitiveservices==0.1.9 azure-cli-command-modules-nspkg==2.0.1 azure-cli-configure==2.0.12 azure-cli-consumption==0.2.0 azure-cli-container==0.1.15 azure-cli-core==2.0.23 azure-cli-cosmosdb==0.1.15 azure-cli-dla==0.0.15 azure-cli-dls==0.0.18 azure-cli-eventgrid==0.1.5 azure-cli-extension==0.0.6 azure-cli-feedback==2.0.6 azure-cli-find==0.2.7 azure-cli-interactive==0.3.11 azure-cli-iot==0.1.15 azure-cli-keyvault==2.0.15 azure-cli-lab==0.0.13 azure-cli-monitor==0.0.13 azure-cli-network==2.0.19 azure-cli-nspkg==3.0.1 azure-cli-profile==2.0.16 azure-cli-rdbms==0.0.9 azure-cli-redis==0.2.10 azure-cli-reservations==0.1.0 azure-cli-resource==2.0.19 azure-cli-role==2.0.15 azure-cli-servicefabric==0.0.7 azure-cli-sql==2.0.17 azure-cli-storage==2.0.21 azure-cli-vm==2.0.20 azure-common==1.1.4 azure-datalake-store==0.0.17 azure-graphrbac==0.31.0 azure-keyvault==0.3.7 azure-mgmt==0.30.0rc6 azure-mgmt-advisor==0.1.0 azure-mgmt-authorization==0.30.0 azure-mgmt-batch==1.0.0 azure-mgmt-batchai==0.2.0 azure-mgmt-billing==0.1.0 azure-mgmt-cdn==0.30.2 azure-mgmt-cognitiveservices==1.0.0 azure-mgmt-compute==0.33.0 azure-mgmt-consumption==1.0.0 azure-mgmt-containerinstance==0.2.0 azure-mgmt-containerregistry==1.0.1 azure-mgmt-containerservice==3.0.0 azure-mgmt-cosmosdb==0.2.1 azure-mgmt-datalake-analytics==0.2.0 azure-mgmt-datalake-nspkg==2.0.0 azure-mgmt-datalake-store==0.2.0 azure-mgmt-devtestlabs==2.0.0 azure-mgmt-dns==1.2.0 azure-mgmt-documentdb==0.1.3 azure-mgmt-eventgrid==0.2.0 azure-mgmt-iothub==0.4.0 azure-mgmt-keyvault==0.30.0rc6 azure-mgmt-logic==1.0.0 azure-mgmt-monitor==0.4.0 azure-mgmt-msi==0.1.0 azure-mgmt-network==0.30.0rc6 azure-mgmt-nspkg==2.0.0 azure-mgmt-rdbms==0.1.0 azure-mgmt-recoveryservices==0.1.0 azure-mgmt-recoveryservicesbackup==0.1.1 azure-mgmt-redis==1.0.0 azure-mgmt-reservations==0.1.0 azure-mgmt-resource==0.30.0 azure-mgmt-scheduler==1.0.0 azure-mgmt-servicefabric==0.1.0 azure-mgmt-sql==0.8.4 azure-mgmt-storage==0.30.0rc6 azure-mgmt-trafficmanager==0.40.0 azure-mgmt-web==0.34.1 azure-multiapi-storage==0.1.7 azure-nspkg==2.0.0 azure-servicebus==0.20.3 azure-servicefabric==5.6.130 azure-servicemanagement-legacy==0.20.4 azure-storage==0.32.0 msrestazure==0.4.21

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@nicholasmhughes thank you for the help, we greatly appreciate it.

@nicholasmhughes can you take a look here since you have more experience with the azurearm stuff?

Thanks, Daniel