[Stacki-REST API] add bootaction action command is not working
siddheshwar-more opened this issue · 1 comments
siddheshwar-more commented
I'm trying to run below stacki command using REST API
'add bootaction action="install sles 11.3 vga" kernel="kernel sles-linux-11.3-x86_64" ramdisk="sles-initrd-11.3-x86_64" args="install=http://192.168.0.33/install/pall ets/SLES/11.3/sles/x86_64 autoyast=file:///tmp/profile/autoinst.xml ramdisk_size=300000 biosdevname=0 console=tty0"'
The Rest API is giving the Response [200] but changes are not saved at stacki frontedn server side. I;ve crossed checked result by using the stack list bootaction
command.
>>> self.session.headers
{'X-CSRFToken': 'drrCWyJ8zKuhzVwM0K0x4C37A3cIyOu2', 'Accept-Encoding': 'gzip, deflate', 'sessionid': '3l0rsi2h8b7gczghjytpkgd45p9sftih', 'Accept': '*/*', 'User-Agent' : 'python-requests/2.18.4', 'Connection': 'keep-alive', 'csrftoken': 'drrCWyJ8zKuhzVwM0K0x4C37A3cIyOu2', 'Content-Type': 'application/json'}
>>> self.url
'http://192.168.0.33/stack'
>>> js
'{"cmd": "add bootaction action=\\"install sles 11.3 vga\\" kernel=\\"kernel sles-linux-11.3-x86_64\\" ramdisk=\\"sles-initrd-11.3-x86_64\\" args=\\"install=http://19 2.168.0.33/install/pallets/SLES/11.3/sles/x86_64 autoyast=file:///tmp/profile/autoinst.xml ramdisk_size=300000 biosdevname=0 console=tty0\\""}'
>>> self.session.post(self.url, data = js)
<Response [200]>
thanks
bsanders commented
We can't reproduce this with head of tree. When next you have a chance can you try to recreate this and give us the output of stack list pallet.