Page MenuHomePhabricator
Paste P13758

makevm error
ActivePublic

Authored by MoritzMuehlenhoff on Wed, Jan 13, 4:21 PM.
# cookbook sre.ganeti.makevm --vcpus 1 --memory 1 --disk 40 --network public ulsfo bast4003.wikimedia.org
START - Cookbook sre.ganeti.makevm
Ready to create Ganeti VM bast4003.wikimedia.org in the ganeti01.svc.ulsfo.wmnet cluster on row 1 with 1 vCPUs, 1GB of RAM, 40GB of disk in the public network.
>>> Is this correct?
Type "go" to proceed or "abort" to interrupt the execution
> go
Allocated IPv4 198.35.26.13/28
Exception raised while executing cookbook sre.ganeti.makevm:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/spicerack/_menu.py", line 226, in run
raw_ret = runner.run()
File "/usr/lib/python3/dist-packages/spicerack/_module_api.py", line 19, in run
return self._run(self.args, self.spicerack)
File "/srv/deployment/spicerack/cookbooks/sre/ganeti/makevm.py", line 105, in run
if not ip_v4.save():
File "/usr/lib/python3/dist-packages/pynetbox/core/response.py", line 391, in save
if req.patch({i: serialized[i] for i in diff}):
File "/usr/lib/python3/dist-packages/pynetbox/core/query.py", line 409, in patch
return self._make_call(verb="patch", data=data)
File "/usr/lib/python3/dist-packages/pynetbox/core/query.py", line 274, in _make_call
raise RequestError(req)
pynetbox.core.query.RequestError: The request failed with code 405 Method Not Allowed: {'detail': 'Method "PATCH" not allowed.'}
END (FAIL) - Cookbook sre.ganeti.makevm (exit_code=99)