Ask Your Question
0

Baremetal Deploy Image 403 Forbidden due to CSRF

asked 2014-01-13 17:07:58 -0500

ChrisMarkieta gravatar image

I am trying to deploy Fedora on my baremetal compute host, but it fails to send a POST request to the compute host to deploy the image.

I can only perform a POST request when I have valid cookies, but the deployed image does not support wget --load-cookies.

The 403 error occurs during wget as it redirects to /dashboard/ while keeping the POST-data ( http://10.42.0.1:10000/dashboard/ ).

diskimage-builder/elements/deploy/init.d/80-deploy

echo "request boot server to deploy image"
d="i=$DEPLOYMENT_ID&k=$DEPLOYMENT_KEY&a=$BOOT_IP_ADDRESS&n=$ISCSI_TARGET_IQN&e=$FIRST_ERR_MSG"
wget --post-data "$d" "http://$BOOT_SERVER:10000"

echo "waiting for notice of complete"
nc -l -p 10000

echo "stop iSCSI target on $target_disk"

stop_iscsi_target
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-14 12:26:17 -0500

ChrisMarkieta gravatar image

I made a silly mistake by using Apache to listen on port 10000, while I should have been starting nova-baremetal-deploy-helper instead.

edit flag offensive delete link more

Comments

I am trying to provision baremetal compute nodes in openstack. Would you mind sharing any helpful pointers to do this? (Basically is there any other information than what is available at https://wiki.openstack.org/wiki/GeneralBareMetalProvisioningFramework) Did you use any tools like packstack or devstack for the install? Appreciate your help..

opstkusr gravatar imageopstkusr ( 2014-02-12 13:35:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-01-13 17:07:58 -0500

Seen: 166 times

Last updated: Jan 14 '14