tag:blogger.com,1999:blog-38487048599144701712024-02-07T13:27:06.657-08:00Uttam HoodeAnonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3848704859914470171.post-85107189980839957062016-05-12T05:35:00.002-07:002016-05-12T05:35:51.871-07:00Installing VNC on CentOS<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "arial" , "helvetica" , sans-serif;">Installing VNC server</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;">#yum install tigervnc*</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Set preferred Desktop (KDE/GNOME etc)</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Desktop can be changed by editing the xtartup file or any other file invoked by xtartup.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;">[root@localhost ~]# cat .vnc/xstartup</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">#!/bin/sh</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;">unset SESSION_MANAGER</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">unset DBUS_SESSION_BUS_ADDRESS</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">exec /etc/X11/xinit/xinitrc</span><br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">[root@localhost ~]# vi /etc/X11/xinit/xinitrc</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">. /etc/X11/xinit/xinitrc-common</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"># The user may have their own clients they want to run. If they don't,</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"># fall back to system defaults.</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">if [ -f $HOME/.Xclients ]; then</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">elif [ -f /etc/X11/xinit/Xclients ]; then</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">else</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # Failsafe settings. Although we should never get here</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # (we provide fallbacks in Xclients as well) it can't hurt.</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> [ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> [ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> [ -x /usr/bin/twm ] && /usr/bin/twm</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">fi</span></div>
</div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">To start GNOME, add /usr/bin/gnome-session &</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<br />
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">else</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # Failsafe settings. Although we should never get here</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # (we provide fallbacks in Xclients as well) it can't hurt.</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> /usr/bin/gnome-session &</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">fi</span></div>
</div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;">To start KDE, , add /usr/bin/startkde &</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<br />
<div>
<span style="font-family: "courier new" , "courier" , monospace;">else</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # Failsafe settings. Although we should never get here</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> # (we provide fallbacks in Xclients as well) it can't hurt.</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> /usr/bin/startkde &</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">fi</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Next step is, set a password for your VNC session</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#vncpasswd</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Then start a new session. </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#vncserver </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">You can specify an unique display number</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#vncserver :100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">To kill a VNC session</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#vncserver --kill :100 </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com1tag:blogger.com,1999:blog-3848704859914470171.post-73723209282865981492015-07-03T12:12:00.001-07:002015-07-03T12:12:10.968-07:00Crontab: Permission denied<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
If you get "Permission denied" error message while adding any cron entry, follow these steps to fix the error.<br />
<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">[user@RHEL5 ~]$ crontab -e<br />-bash: /usr/bin/crontab: Permission denied</span><br />
<br />
<br />
<br />1. Check whether the user name is present in /etc/cron.deny file. If yes remove it.<br />
<br />
2. Check whether /etc/cron.allow file is present. If yes, add user name to the file.<br />
<br />
3. Check for cron related entry in PAM configuration file.<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;"> [user@RHEL5 ~]$grep "^+.*cron" /etc/security/access.conf</span><br />
<br />
4. Change the file permission of crontab file<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">#chmod 4775 /usr/bin/crontab</span></div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0tag:blogger.com,1999:blog-3848704859914470171.post-87306020621755221382015-07-01T09:43:00.001-07:002015-07-01T12:44:33.831-07:00Reconnecting to DevStack screen and restarting the services<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
When the ./stack.sh is run, it uses screen application to create multiple sessions. Once the DevStack is up and running, you can reconnect to screen and gain control by running<br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;">stack@ubuntuvm:~/devstack$ ./rejoin-stack.sh</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO1-kt3h0AHkYCu3NR5mQPQJCHgoW_Skly6YYqgoOA_ds4vsRZCZMejWmAl9vo1CTY90bxeAcBxneJsQ9owWa_PYLndov6bpoLsco1KrgZ1nVvAh3C6jyGce2Tg4Z_iXh8DFD0gSzpflc/s1600/devstack_rejoin.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO1-kt3h0AHkYCu3NR5mQPQJCHgoW_Skly6YYqgoOA_ds4vsRZCZMejWmAl9vo1CTY90bxeAcBxneJsQ9owWa_PYLndov6bpoLsco1KrgZ1nVvAh3C6jyGce2Tg4Z_iXh8DFD0gSzpflc/s400/devstack_rejoin.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
To view the list of tabs, CTRL+a and then press ". </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdIsTV4Ln_d8plwUIiCLy9mkcMtpXbWQDvNpfIC1A2wdf1LsZYdQ-RWjLOQb0fo4pIdWltIW4wXXZoypajkqP8bXm3PZkFYj37LTrEPQzzqcux8IHSPK-nYZBpw9JEb9bhTo5h-yIaACg/s1600/devstack_rejoin2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdIsTV4Ln_d8plwUIiCLy9mkcMtpXbWQDvNpfIC1A2wdf1LsZYdQ-RWjLOQb0fo4pIdWltIW4wXXZoypajkqP8bXm3PZkFYj37LTrEPQzzqcux8IHSPK-nYZBpw9JEb9bhTo5h-yIaACg/s400/devstack_rejoin2.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Select any tab by pressing the arrow key and hit Enter. To stop the process by pressing CTRL+c and press UP arrow key to view the command. Press enter to start the process again.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid2Hj9nG0UV7Q9K_y9E-hpl7MvDj4yFCpeSaOdbNhH1ytsmXyxirP4qv8vwrG7b2fbvFmvK7nj6qDX7stgV4Yj_FSU02ZgAiiZ-2ItD7VNRXXTGzK86OAa5CJQU3qXJJwoMWpBK9jEM5k/s1600/devstack_rejoin3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid2Hj9nG0UV7Q9K_y9E-hpl7MvDj4yFCpeSaOdbNhH1ytsmXyxirP4qv8vwrG7b2fbvFmvK7nj6qDX7stgV4Yj_FSU02ZgAiiZ-2ItD7VNRXXTGzK86OAa5CJQU3qXJJwoMWpBK9jEM5k/s400/devstack_rejoin3.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
To close the screen, press CTRL+A+D.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
You can also use screen command instead of rejoin-stack.sh</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaIpASW_1PPn8v4XiJJFS986MKlD741OQP6oWQsvn0e2iSDcxw4IqYyN84ENcbwCrD26PoSFlUuJhWfHTnjKbxBux4rbQPpI3lnrYrwunJ0f_nwSpnzN8TccxmP2P0WxVQRO79qUhiDk/s1600/devstack_rejoin4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaIpASW_1PPn8v4XiJJFS986MKlD741OQP6oWQsvn0e2iSDcxw4IqYyN84ENcbwCrD26PoSFlUuJhWfHTnjKbxBux4rbQPpI3lnrYrwunJ0f_nwSpnzN8TccxmP2P0WxVQRO79qUhiDk/s400/devstack_rejoin4.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Screen commands</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Next Tab CTRL+a+n</div>
<div class="separator" style="clear: both; text-align: left;">
Previous Tab CTRL+a+b</div>
<div class="separator" style="clear: both; text-align: left;">
Close screen CTRL+a+d</div>
<div class="separator" style="clear: both; text-align: left;">
List tabs CTRL+a+"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0tag:blogger.com,1999:blog-3848704859914470171.post-74632163861001458712015-06-22T00:08:00.001-07:002015-06-22T00:15:35.872-07:00Monitoring OpenStack Queue(AMQP)<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
RabbitMQ provides command line tool for checking the queue status. </div>
<div>
<br /></div>
<div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code>stack@ubuntuvm:~$ rabbitmqctl list_queues name</code></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<br /></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code>stack@ubuntuvm:~$ rabbitmqctl list_exchanges name</code></div>
</div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code><br /></code></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<span style="font-family: 'Times New Roman'; orphans: auto; text-align: -webkit-auto; widows: 1;">RabbitMQ provides web based GUI for monitoring and administration. To enable the management plugin, run</span></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<br /></div>
<div style="orphans: 2; text-align: -webkit-auto; widows: 2;">
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;">stack@ubuntuvm:~$ sudo rabbitmq-plugins enable rabbitmq_management</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;">The following plugins have been enabled:</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> mochiweb</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> webmachine</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> rabbitmq_web_dispatch</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> amqp_client</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> rabbitmq_management_agent</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;"> rabbitmq_management</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small; text-align: -webkit-auto;">Plugin configuration has changed. Restart RabbitMQ for changes to take effect.</span></div>
<div style="font-family: Tahoma;">
<span style="font-family: monospace; text-align: -webkit-auto;"><br /></span></div>
<div>
<span style="text-align: -webkit-auto;"></span><br />
<div style="font-family: monospace;">
<span style="text-align: -webkit-auto;">stack@ubuntuvm:~$ sudo service rabbitmq-server restart</span></div>
<span style="text-align: -webkit-auto;">
<div style="font-family: monospace;">
* Restarting message broker rabbitmq-server </div>
<div style="font-family: monospace;">
<br /></div>
<div style="font-family: monospace;">
<br /></div>
<div>
<span style="font-family: Times, Times New Roman, serif;">Web GUI can be accessed from <span style="text-align: -webkit-auto;">http://server-name:15672/ URL.</span></span></div>
</span></div>
</div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code><br /></code></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code><br /></code></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNzrJuCqez-DIrFmFEm18Mw47PoMIQxaAO8NAsH1pR1KEeC-8bFg2Yk5kCx08VekO1CqJIDSSTdV5DUv1hj8PRlXd60gpNPImI1W830TcCSemXP7i0vtC-u-F_EuvsUSJLlp4FbH2Hkmo/s1600/RabbitMQ+Management.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNzrJuCqez-DIrFmFEm18Mw47PoMIQxaAO8NAsH1pR1KEeC-8bFg2Yk5kCx08VekO1CqJIDSSTdV5DUv1hj8PRlXd60gpNPImI1W830TcCSemXP7i0vtC-u-F_EuvsUSJLlp4FbH2Hkmo/s640/RabbitMQ+Management.jpg" width="640" /></a></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<code><br /></code></div>
</div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0tag:blogger.com,1999:blog-3848704859914470171.post-44531116656366723672015-05-19T01:31:00.004-07:002015-05-19T01:31:46.983-07:00Testing OpenStack REST API using JMeter<div dir="ltr" style="text-align: left;" trbidi="on">
OpenStack provides numerous REST APIs for managing various tasks and fetching information. Project website provides a well written API document which can be found <a href="http://developer.openstack.org/api-ref.html" target="_blank">here</a>.<br />
APIs are classified based on components and version numbers.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLv7nuZyg2pyovgCaDAl1PDNhsUiyUNubaw8v1UtNPpdW-Qg8wbhqvIq7V4F2K8ilbM1XN56LkAZjVfdbqnmHTal1dqYfSTziqzHyEIETXz6a1Cc2As15ZblwW31Wc9g9jRYnzfZS6J-A/s1600/rest_api.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLv7nuZyg2pyovgCaDAl1PDNhsUiyUNubaw8v1UtNPpdW-Qg8wbhqvIq7V4F2K8ilbM1XN56LkAZjVfdbqnmHTal1dqYfSTziqzHyEIETXz6a1Cc2As15ZblwW31Wc9g9jRYnzfZS6J-A/s400/rest_api.jpg" width="213" /></a><br />
<br />
While creating API end points, we need to give three different URLs namely public, internal and admin and level of access for these endpoints are defined in keystone-paste.ini file.<br />
<br />
1. Download JMeter from http://jmeter.apache.org/ and extract the archive.<br />
<br />
2. Download JMeter plugins from http://jmeter-plugins.org/ and extract the content into JMeter directory.<br />
<br />
3. Create a new JMeter test plan and add "Thread Group" controller with single thread.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-zUNyeD0nN-qMhDFlJZzSnMMwS-xxW5qIdOqBMmWLP4VKbBOXhBk4V9bPy_WxI71DKW-EBonKVNGXmyBsoZAmM25r9JfPSvGyp6H4IXfIT0AK1XOz7NfV95c_WqYWqYeyTkHT4nK750/s1600/1threads.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="337" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-zUNyeD0nN-qMhDFlJZzSnMMwS-xxW5qIdOqBMmWLP4VKbBOXhBk4V9bPy_WxI71DKW-EBonKVNGXmyBsoZAmM25r9JfPSvGyp6H4IXfIT0AK1XOz7NfV95c_WqYWqYeyTkHT4nK750/s640/1threads.jpg" width="640" /></a></div>
<br />
<br />
4. Add "HTTP Header Manager" Config Element.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXOzBggXciLfuO0OdyTmQWVy8kyFMpfB_RSGI4Rx_31DMZjlqKEi5JrbwI6KI5GeE_kO8i0cvAXot2HERwBgUkQWAP6htauUE6qKLoDe0oU3t_v8tK2-okbY8bonVsXjUlFquXE5Us-jY/s1600/2httpheader.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="339" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXOzBggXciLfuO0OdyTmQWVy8kyFMpfB_RSGI4Rx_31DMZjlqKEi5JrbwI6KI5GeE_kO8i0cvAXot2HERwBgUkQWAP6htauUE6qKLoDe0oU3t_v8tK2-okbY8bonVsXjUlFquXE5Us-jY/s640/2httpheader.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5. In HTTP Request sampler, configure server ip, port and REST request(In Body Data field).</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdghgtc8Qp4XEzzhHDlWA698SwM6C-p1H3iIj1Tfm1EFKtkkLSNTkl7VRUb5joIjUOU094dPWYIjJnslXLGf0FEnhFCN3R6AfQQuuwgKq_c-nbuOo2ojezoDnwgqSFUcrCARGVNWAYIO0/s1600/3httprequests.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="341" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdghgtc8Qp4XEzzhHDlWA698SwM6C-p1H3iIj1Tfm1EFKtkkLSNTkl7VRUb5joIjUOU094dPWYIjJnslXLGf0FEnhFCN3R6AfQQuuwgKq_c-nbuOo2ojezoDnwgqSFUcrCARGVNWAYIO0/s640/3httprequests.jpg" width="640" /></a></div>
<br />
<br />
6. Configure JSON Path to extract the toke id.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpEBZ1SF3MRhPRXDlbtdSkAXY9Jhg85g17h3we2oSyrZbboitZFeTAVe3jEoxlaCNI-2PPWZtHkjSffvfugxjF-uxfh-3U8lTwUipy2Sn__idhERk4Wj63JUqt81w75l53gua8HzXxg0/s1600/5json.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="339" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpEBZ1SF3MRhPRXDlbtdSkAXY9Jhg85g17h3we2oSyrZbboitZFeTAVe3jEoxlaCNI-2PPWZtHkjSffvfugxjF-uxfh-3U8lTwUipy2Sn__idhERk4Wj63JUqt81w75l53gua8HzXxg0/s640/5json.jpg" width="640" /></a></div>
<br />
<br />
7. Now configure another HTTP Request control to send the API request to the Nova node. Here HTTP request type is GET.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoA6_DyDk_-jh0OhCGR3PVMe1EeLdk7p-y9tAxksg5F1Tw798Yxm9mzStkDSsjogw6ZyoEILA23yLAkyKp_dv3PHCGEN7fC93MUgEaE1skQJnYd82TJCmj4L-F5wZbQJ6pK8qzanAkxtg/s1600/6httprequests.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoA6_DyDk_-jh0OhCGR3PVMe1EeLdk7p-y9tAxksg5F1Tw798Yxm9mzStkDSsjogw6ZyoEILA23yLAkyKp_dv3PHCGEN7fC93MUgEaE1skQJnYd82TJCmj4L-F5wZbQJ6pK8qzanAkxtg/s640/6httprequests.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Save the configuration and click on run button. First JMeter will fire a request to Keystone endpoint and token id is obtained. Later token id is extracted using JSon Path and passed to the second API. You can view the results in Result tree.</div>
</div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0tag:blogger.com,1999:blog-3848704859914470171.post-18452522868088030212015-05-11T22:59:00.000-07:002015-05-13T23:42:40.528-07:00Run OpenStack on your laptop using DevStack<div dir="ltr" style="text-align: left;" trbidi="on">
DevStack requires Ubuntu 14.04 (Trusty Tahr) to run. First create a sudo user in you Linux box.<br />
<br />
If you are using any higher version of Ubuntu then you can forcefully run DevStack by setting FORCE environment variable to yes. However you may face issue due to python library mismatch.<br />
<br />
export FORCE=yes<br />
<br />
Add a new user to run DevStack. This step is optional and DevStack can be run from any sudo user.<br />
Sudo is required since DevStack downloads various packages and also mounts disk partitions.<br />
<br />
groupadd stack<br />
useradd -g stack -s /bin/bash -d /opt/stack -m stack<br />
<br />
user@ubuntuvm:~$ id<br />
uid=1001(stack) gid=1001(stack) groups=1001(stack),27(sudo),130(libvirtd)<br />
<br />
<br />
apt-get install sudo -y<br />
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers<br />
<br />
<br />
DevStack project is hosted on GIT and therefore install git client if not installed.<br />
<br />
sudo apt-get install git -y<br />
<br />
git clone https://git.openstack.org/openstack-dev/devstack<br />
<br />
To download a specific branch<br />
<br />
git clone https://github.com/openstack-dev/devstack.git -b stable/juno devstack/<br />
<br />
cd devstack<br />
<br />
./stack.sh<br />
First this script will checkout DevStack source code from DevStack repository and it will download and install dependency packages from Ubuntu package repository.<br />
<br />
stack.sh uses screen command. Once it is started you can close the terminal. To reconnect to the screen just ./rejoin.sh<br />
<br />
To stop DevStack, run<br />
<br />
./unstack.sh<br />
<br />
This will stop all the processes and close screens.<br />
<br />
Configuration file<br />
<br />
In DevStack features can be enabled or disabled through local.conf file. I have created a sample local.conf file in which almost all OpenStack components<br />
are enabled.<br />
<br />
<br />
git clone https://github.com/uttamhoode/devstack<br />
<br />
cp local.conf /opt/devstack<br />
<br />
<br />
Stop DevStack instance and restart it.<br />
<br />
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0tag:blogger.com,1999:blog-3848704859914470171.post-54152203897551652922014-12-15T02:03:00.003-08:002014-12-16T00:23:39.458-08:00Building Seagull from source<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: #333333; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 16px; line-height: 24px;">
First download the source code from Seagull Sourceforge project page.<br />
<br />
<pre>[uttam@CentOS ~]$ wget http://kaz.dl.sourceforge.net/project/gull/seagull/1.8.2/seagull.svn.tar.gz<br />--2014-07-04 14:45:09-- http://kaz.dl.sourceforge.net/project/gull/seagull/1.8.2/seagull.svn.tar.gz<br />Resolving kaz.dl.sourceforge.net... 88.204.157.163<br />Connecting to kaz.dl.sourceforge.net|88.204.157.163|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 14811741 (14M) [application/x-gzip]<br />Saving to: `seagull.svn.tar.gz'</pre><br />
<code><br />100%[==============================================================================================================================>] 14,811,741 294K/s in 38s</code><br />
<code><br />2014-07-04 14:45:48 (383 KB/s) - `seagull.svn.tar.gz' saved [14811741/14811741]</code><br />
<br />
<code><br /></code>
Extract the archive<br />
<code><br />$tar -zxvf seagull.svn.tar.gz</code><br />
<code>$cd cd seagull.svn.LINUX/</code></div>
<div style="color: #333333; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 16px; line-height: 24px;">
If you are not using TCAP and SCTP, then you can comment the below lines in build.conf<br />
else you need to install the relevent libraries.<br />
<code><br /># HP OC TCAP transport library<br />BUILD_8_NAME="libtrans_octcap.so"<br />BUILD_8_TYPE=tcap_lib<br />BUILD_8_MODULES="common transport-frame protocol-frame library-trans-octcap32"</code></div>
<div style="color: #333333; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 16px; line-height: 24px;">
# sctp transport library<br />
BUILD_9_NAME="libtrans_extsctp.so"<br />
BUILD_9_TYPE=libextsctp<br />
BUILD_9_MODULES="common transport-frame protocol-frame library-trans-ip library-trans-extsctp"<br />
<br /></div>
<div style="color: #333333; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 16px; line-height: 24px;">
Install external libraries<br />
<code><br />#yum install lksctp*<br />#yum install lksctp-tools-devel-*</code><br />
or<br />
<code>[uttam@CentOS seagull.svn.LINUX]$ ./build-ext-lib.ksh<br />[uttam@CentOS seagull.svn.LINUX]$ patch < add-fPIC.patch<br />patching file build.conf<br />[uttam@CentOS seagull.svn.LINUX]$ ./build.ksh -help<br />Command line syntax of ./build.ksh - options<br />-exec <RELEASE|DEBUG> : mode used for compilation (default RELEASE)<br />-target <all|clean|force|dist> : target used for compilation (default all)<br />-help : display the command line syntax</code></div>
</div>
</div>Anonymoushttp://www.blogger.com/profile/17734370234832744104noreply@blogger.com0