Import OVA to Amazon Aws

VM Import/Export enables you to easily import virtual machine images from your existing environment to Amazon EC2 instances and export them back to your on-premises environment. This offering allows you to leverage your existing investments in the virtual machines that you have built to meet your IT security, configuration management, and compliance requirements by bringing… Read More »

Install s3cmd in Linux to Manage Amazon s3 Bucket

s3cmd is a command line utility used for creating s3 buckets, uploading, retrieving and managing data to Amazon s3 storage. This article will help you to how to use install s3cmd on CentOS, RHEL and Ubuntu Systems and manage s3 buckets via command line in easy steps How to Install s3cmd Package s3cmd is available… Read More »

Category: Aws

Mount S3 Bucket on CentOS/RHEL and Ubuntu using S3FS

S3FS is FUSE (File System in User Space) based solution to mount an Amazon S3 buckets, We can use system commands with this drive just like as another Hard Disk in system. On s3fs mounted files systems we can simply use cp, mv and ls the basic Unix commands similar to run on locally attached… Read More »

AWS EBS SnapShot Scipt for Linux

The script itself is fairly straightforward, but took several dry-runs in order to fine tune it so that it would reliably create the snapshots, but more importantly would clear out old snapshots older than 7 days. You can see the for loop for deleting older snapshots. This is done by parsing snapshot dates, converting the… Read More »

“No such file or directory” when adding application with alternatives in Linux

Issue  # alternatives –install /usr/bin/javaws javaws /usr/java/jdk1.7.0_07/jre/bin/javaws  20000 failed to read link /usr/bin/javaws: No such file or directory or  sudo update-alternatives –install /usr/bin/jar jar /usr/java/latest/bin/jar 20000 failed to read link /usr/bin/jar: No such file or directory Fix  sudo rm /usr/bin/jar sudo rm /var/lib/alternatives/jar sudo alternatives –install /usr/bin/jar jar /usr/java/latest/bin/jar 20000 rm /var/lib/alternatives/javaws rm /var/lib/alternatives/javawsrm: remove… Read More »

How To Grant Access To Only One S3 Bucket Using AWS IAM Policy

Go to http://aws.amazon.com. Click on “My Account/Console” and select “Security Credentials”. Select “Continue to Security Credentials”. Select “Policies” on the left menu, then click “Create Policy”. Select “Create Your Own Policy”. Fill out the “Policy Name”, “Description” and “Policy Document” fields.Replace “YOUR-BUCKET” in the example below with your bucket name.Please note that we set “ListAllMyBuckets” to… Read More »

Create SFTP server in Windows Server.

Normally we need to install ftp role and get the site configured to use the FTP/SFTP in the windows server. Now we can Create SFTP server in windows server by enabling freeftpd from following URL http://www.freesshd.com/?ctt=download

Oracle Database backup to AWS S3 : Error occured when installing OSB(Oracle Security Backup) on Amazon S

I tried to set up rman backup using amazon cloud module and I faced up following error.Internet connections are positively working. #> java -jar osbws_install.jar -AWSID MyAWSID -AWSKey MYAWSKEY -otnUser MYOTNID -otnPass MYOTNPASS -walletDir $ORACLE_HOME/dbs/osbws_wallet -libDir $ORACLE_HOME/lib -debug Fix:  The OSB module works only with Java version 1.5 and 1.6. The new Machines are running… Read More »

AWS S3 : Limiting Access from Certain IP’s

We need to our nodes to connect to S3 from a single IP address, an elastic IP attached to our gateway node. So – based on this design, we needed a way to only allow access to a set of buckets from this single IP address. For example purposes we are using the IP of… Read More »

Category: Aws

Configure MySql and ODBC Connector In Windows 2012 Server

Installing MySql and its ODBC Connector In the Windows 2012 Server Download The Microsoft Visual C++ 2010 Redistributablehttp://www.microsoft.com/en-gb/download/details.aspx?id=14632 Download and install the ODBC Connectorhttp://cdn.mysql.com/Downloads/Connector-ODBC/5.3/mysql-connector-odbc-5.3.4-winx64.msi Downoading the MySQLhttp://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.26-winx64.zip c:mysql>cd binc:mysqlbin>mysqld –installService successfully installed. Go to Services and start the Mysql Services. c:mysqlbin>mysql -u root -p>>No password is needed for first time Set the root Password=====================mysql>mysql> UPDATE… Read More »

Mysql Cluster Using Mysql NDB

Mysql Cluster using NDB(Network DataBase) provides a self healing mysql Cluster which provides a good performance. Mainly the Mysql Cluster Contains 3 Components ie using Management , SQL and Data parts.  Here we will be configuring two Management and two Data/SQL (together in One server) for the HA. Once the configuration is completed we will… Read More »

Delete a nat rule in iptables

First of all I list all the rules including line numbers like this; iptables -L -t nat –line-numbers I then look at the output that will be similar to the below In this example lets say I want to delete rule number 2 in the PREROUTING chain, I would enter the following; iptables -t nat… Read More »

Getting Client IP Behind the Aws ELB (Http/Http Mode)

We need to add the Following Logformat to get the clients IP. We use the X-Forwarded-For entry in the apache configuration to get it done. # The following directives define some format nicknames for use with# a CustomLog directive (see below).#LogFormat “”%{X-Forwarded-For}i” %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined_new#…. #…## START_HOST example.com  … Read More »

Jira===JIRA is a commercial software product that can be licensed for running on-premises or available as a hosted application. Pricing depends on the maximum number of users.Installing Javayum install java-1.7.0* Installing Databaseyum install -y mariadb-servermysql -u root -pCREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO ‘jira’@’localhost’ IDENTIFIED BY ‘jira_xuZEKE4N’;flush privileges;SHOW GRANTS FOR ‘jira’@’localhost’;exit;… Read More »

Jenkins Starting issue.

Issue with starting===================Note: if you get the following error message, ensure that Java has been installed:Starting jenkins (via systemctl):  Job for jenkins.service failed. See ‘systemctl status jenkins.service’ and ‘journalctl -xn’ for details                                            [FAILED] Check… Read More »

Jenkins Integration/Automation Tools

Integration/Automation tool==================Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle. Jenkinsprovides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat Installing Jenkins Latest Version=================================sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.reposudo rpm –import https://jenkins-ci.org/redhat/jenkins-ci.org.keysudo yum install… Read More »

Openstack KVM libvirtError: internal error: no supported architecture for os type ‘hvm’

Nova Error Log===========2015-05-06 16:50:22.982 1187 ERROR nova.compute.manager [-] [instance: fdc97e3f-25f0-4d4d-b649-4a6d4aff8545] Instance failed to spawn2015-05-06 16:50:22.982 1187 TRACE nova.compute.manager [instance: fdc97e3f-25f0-4d4d-b649-4a6d4aff8545] Traceback (most recent call last):2015-05-06 16:50:22.982 1187 TRACE nova.compute.manager [instance: fdc97e3f-25f0-4d4d-b649-4a6d4aff8545]   File “/usr/lib/python2.7/site-packages/nova/compute/manager.py”, line 2246, in _build_resources2015-05-06 16:50:22.982 1187 TRACE nova.compute.manager [instance: fdc97e3f-25f0-4d4d-b649-4a6d4aff8545]     yield resources2015-05-06 16:50:22.982 1187 TRACE nova.compute.manager [instance: fdc97e3f-25f0-4d4d-b649-4a6d4aff8545]  … Read More »

Libvirtd Error after Package Update

We were getting following error after package for libvirtd got updated to 1.2.8 Apr 28 12:18:04 compute1 libvirtd[12294]: failed to load module /usr/lib64/libvirt/connection-driver/libvirt_driver_storage.so /usr/lib64/libvirt/connection-driver/libvirt_driver_storage.so: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time referenceApr 28 12:18:04 compute1 libvirtd[12294]: failed to load module /usr/lib64/libvirt/connection-driver/libvirt_driver_qemu.so /usr/lib64/libvirt/connection-driver/libvirt_driver_qemu.so: undefined symbol: virStorageFileCreateApr 28 12:18:04 compute1 libvirtd[12294]: Module… Read More »

Updating CA certificates in Fedora/Centos/RHEL

On Fedora since 19, RHEL / CentOS 7, and RHEL / CentOS 6  the correct method is to place the certificate to be trusted (in PEM format) in /etc/pki/ca-trust/source/anchors/ and run sudo update-ca-trust. (If the certificate is in OpenSSL’s extended BEGIN TRUSTED CERTIFICATE format, place it in /etc/pki/ca-trust/source). On RHEL 6, you have to activate the… Read More »

Mysql Engine Swap MyISam to InnoDB and InnoDB to MyISam

To convert all tables in a database from InnoDB to MyISAM, run the MySQL following command, replacing db_name with the database name in question: mysql -e “SELECT concat(‘ALTER TABLE ‘, TABLE_NAME,’ ENGINE=MYISAM;’) FROM Information_schema.TABLES WHERE TABLE_SCHEMA = ‘db_name’ AND ENGINE = ‘InnoDB’ AND TABLE_TYPE = ‘BASE TABLE’” Then, after stopping MySQL, you want to get… Read More »

Enabling Instance resizing In Openstack Juno

Editing Configuration#Run on ALL Compute Server and Contoller Server sed -i “s/#allow_resize_to_same_host.*/allow_resize_to_same_host=true/g” /etc/nova/nova.confsed -i “s/#allow_migrate_to_same_host.*/allow_migrate_to_same_host=true/g” /etc/nova/nova.conf Configure the nova userusermod -s /bin/bash nova And enable password less authentication between Nova user’s in all server’s. To Create Public and Private key for the userssh-keygen To Copy the Public key to other usersssh-copy-id <To all Server’s> Add… Read More »

Creating Custom Windows Image for Openstack

Creating Custom Windows Images. Setting up the KVM environment to create the custom images. Installing Packages # We can do it on Compute 2 yum install kvm qemu-kvm python-virtinst libvirt libvirt-python virt-manager libguestfs-tools Once the packages are installed we need to get the ISO’s. Now we need the Virtio Driver’s so that windows can detect… Read More »

Protect Grub2 with Password Centos7/rhel7

Protect Grub2 with Plain Password Method 1.)Login as a root user su – 2.) Backup the existing grub.cfg so if anything goes wrong we can always restore it. >>cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig To specify a superuser, add the following lines in the /etc/grub.d/01_users file, where john is the name of the user designated as the superuser,… Read More »

Creating Replicated Volumes with Gluster FS

In the following scenario we are replicating a particular details from one  server to another server using GlusterFS replicated Volumes. Mount the partitionOn Both the Server’smkfs.ext3 /dev/sdb1mkdir /root/glusterfsmount /dev/sdb1 /root/glusterfs/tail -n 1 /etc/mtab >> /etc/fstabmkdir /root/glusterfs/images How to Enable EPEL Repository in RHEL/CentOSNext, we need to enable GlusterFs repository on both servers. wget -P /etc/yum.repos.d… Read More »

Openstack Recovering Data from Failed Instances Disk

Openstack Recovering Data from Failed Instances Disk ****************************Qemu-nbd tools in Ubuntu**************************** In some scenarios, instances are running but are inaccessible through SSH and do not respond to any command. The VNC console could be displaying a boot failure or kernel panic error messages. This could be an indication of file system corruption on the VM… Read More »

Google Two-Factor Authentication on Linux Server

The Google Authenticator is an open-source module that includes implementations of one-time passcodes (TOTP) verification token developed by Google. It supports several mobile platforms, as well as PAM (Pluggable Authentication Module). These one-time passcodes are generated using open standards created by the OATH (Initiative for Open Authentication). Install the needed packagesyum install pam-devel make gcc-c++… Read More »

Swift Tips

Swift stores the data we store in the containers in .data foramt in the corresponding Drives. [root@compute ~]# find /srv/node/sdc1 -iname *.data/srv/node/sdc1/objects/58511/456/3923e942436c9de6e832f944fb30c456/1421697356.06343.data/srv/node/sdc1/objects/66216/445/40aa0b832ae8dff8681916972fd13445/1422560956.02659.data/srv/node/sdc1/objects/142841/960/8b7e465403a5b5017ae51c0c0ab5a960/1422459278.52978.data/srv/node/sdc1/objects/53083/6af/33d6dc4a65e40f2c539e26649c2d96af/1422459797.37964.data/srv/node/sdc1/objects/37756/61e/24df3295c06d9770e1cd4f1d15ee861e/1422560823.75913.data/srv/node/sdc1/objects/206317/924/c97b770dc9f2170f2434631423ccb924/1422560870.83562.data/srv/node/sdc1/objects/1056/c1d/01081c2d99e3ed7cc3408249335b9c1d/1422560871.31131.data/srv/node/sdc1/objects/107854/6aa/6953b4ba90867f1b2ee0ff36e8f7d6aa/1422560871.63875.data/srv/node/sdc1/objects/262004/dfc/ffdd367dd12034d5f3c066845e4d8dfc/1422560873.82851.data/srv/node/sdc1/objects/71710/393/4607a45373f2b0f6632b2f56501cf393/1422560874.16764.data In above out put the swift drive is mounted to /srv/node/sdc1. we can get the date when the data file is created from the name of the data file. /srv/node/sdc1/objects/71784/771/461a3fd11073d0a88222403d4a7d1771/1422561047.39847.data[root@compute ~]# date –date… Read More »

Directory Sharing between Host Machine and Docker

Mount a Host Directory as a Data Volume To mount a  host directory on to the container >>$ sudo docker run -d -P –name web -v /src/webapp:/opt/webapp training/webapp python app.py This will mount the host directory, /src/webapp, into the container at /opt/webapp

Running a Script in Client Server’s using Puppet Master.

Running a Script in Client Server’s using Puppet. Enable the puppet File Server=============================Add Following entries to /etc/puppet/fileserver.conf[extra_files]path /var/lib/puppet/bucketallow * The File is stored in the mentioned path========================================[root@master ~]# ll /var/lib/puppet/bucket/total 4-rw-r–r–. 1 root root 39 Feb 10 16:45 startup.sh In the below codes first the scripts is fetched from the master and saved in the… Read More »

Puppet Master-Client Setup/Usage

Puppet is a system for automating system administration tasks. It has a master server in which we will be mentioning the client configurations and in the client we will be running an agent which will fetch the configuration form the master server and implement it.EnvironmentMaster and Client Runs on Centos7 Open the port 8140 in… Read More »

Configuring http proxy in the linux Server

Open the .bash_profile file for editing. (example: vi ~/.bash_profile)Add the following lines to the end of the file:http_proxy=http://proxy_server_address:portexport no_proxy=localhost,127.0.0.1,192.168.0.34export http_proxyhttp_proxy should be the ip address or hostname, plus the port of your proxy serverno_proxy should be any exclusions you want to make – addresses that you don’t want to send via the proxy.NOTE: This must… Read More »

Openstack – Auto evacuation Script

The Following Script will1.)Check for the Compute Hosts which are Down 2.)Check for the Instance in the Down Hosts3.)Check for Compute Hosts which are Up4.)Calculate the Vcpu and Memory needed for Instance which are in Down Host5.)Calculate the free Vcpu and Memory in the Up Hosts7.)Find proper Host for each Instance in the Down Host8.)Once… Read More »

Clustering CoreOS Docker Hosts Using Fleet

Once the CoreOS Docker Hosts are Clustered we will be able to manage the Docker Hosts from a single server. Getting the new Discovery URL. curl -w “n” https://discovery.etcd.io/new We will get somthing like https://discovery.etcd.io/16043bf6be5ecf5c42a0bcc0d9237954 make sure we use the new Discovery URL in the Config-core.yaml Configure the new Config File with the URL>>cat config-core.yaml===============================================#cloud-configcoreos: … Read More »

Pushing Images into private Docker-Registry

Pushing to a Private Docker. Configure CoreOs to use the Private Docker RegistryTo use the Private Registry in the coreos we need to Copy the CA certificate from the registry server to the Coreos Docker server.Copy the CA certificate to /etc/ssl/certs/docker-registry.pem as pem .now update the Certificate list using command>>sudo update-ca-certificates Let our private docker… Read More »

Python Error “ImportError: No module named pkg_resources”

I encountered the ImportError today while trying to use pip. Somehow the setup tools package had been deleted in my Python environment.=============== File “/usr/bin/gunicorn”, line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources ===============Fix to reset to python Environment curl https://bootstrap.pypa.io/ez_setup.py | python

Private Docker Registry @ Centos7

Here we will try to create a private docker registry for the internal use with security. Install the Packages>> yum update -y ;>> yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm>> yum install docker-registry The configruetion file will be at /etc/docker-registry.yml Edit the dev section to match the needed Storage portion  # This is the default configuration when no flavor… Read More »

Import/Export a Docker Images

For Exporting a docker image from one server to another we can user private registry or we can also tar the image and copy the tar over to new server and import it into the new server using the tar file. Export a Docker image to a file. docker save image > image.tar Import a… Read More »

Docker Usage Explained

Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible. Downloading a Docker image>>docker pull centos >>docker pull ubuntu… Read More »

NovaException: Unexpected vif_type=binding_failed In Openstack Juno Migration

Sample Error=============ERROR nova.compute.manager [req-] [instance: ******-******-******-*******] Setting instance vm_state to ERRORTRACE nova.compute.manager [instance: ******-******-******-*******] Traceback (most recent call last):TRACE nova.compute.manager [instance: ******-******-******-*******]   File “/usr/lib/python2.7/site-packages/nova/compute/manager.py”, line 5596, in _error_out_instance_on_exceptionTRACE nova.compute.manager [instance: ******-******-******-*******]     yieldTRACE nova.compute.manager [instance: ******-******-******-*******]   File “/usr/lib/python2.7/site-packages/nova/compute/manager.py”, line 3459, in resize_instanceTRACE nova.compute.manager [instance: ******-******-******-*******]     block_device_info)TRACE nova.compute.manager [instance: ******-******-******-*******]  … Read More »

GFS Storage Cluster in Centos7

Clustering the Storage LUNS : Sharing A ISCSI LUN with Mutiple Server’s. Install Packagesyum -y install pcs fence-agents-all iscsi-initiator-utils Configure Ha-Cluster user Configure password for hacluster user make sure we use same password in both the server’s.On both Server’s [root@controller ~]# passwd hacluster Make sure the host entries are correct.vi /etc/hosts10.1.15.32 controller10.1.15.36 controller2 Start and enable… Read More »

Configuring Multipath in Centos 7 for ISCSI storage LUNS

Install Packages yum -y install iscsi-initiator-utilsyum install device-mapper-multipath -y Starting and Enabling the Service  systemctl start iscsi;systemctl start iscsid ;systemctl start multipathd ; systemctl enable iscsi ;systemctl enable iscsid ;systemctl enable multipathd ; Discovering the iSCSI Targetsiscsiadm -m discovery -t sendtargets -p 10.1.1.100iscsiadm -m discovery -t sendtargets -p 10.1.0.100 Login to all the targetsiscsiadm -m… Read More »

Run a Script Before Shutdown in Centos7

Immediately before executing the actual system halt/poweroff/reboot/kexec systemd-shutdown will run all executables in /usr/lib/systemd/system-shutdown/ and pass one arguments to them: either “halt”, “poweroff”, “reboot” or “kexec”, depending on the chosen action. All executables in this directory are executed in parallel, and execution of the action is not continued before all executables finished. Note that systemd-halt.service… Read More »

NIC Bonding in the Centos7

Most of the setting are same as in the Older Version as in the Following URL . http://www.adminz.in/2014/07/nic-bonding-in-linux.html We just need to add following entries in the Master Bond0 config file to make the network system understand that bond0 is the master. In bond0’s config file. TYPE=BondBONDING_MASTER=yes Sample Master File DEVICE=bond0NAME=bond0TYPE=BondBONDING_MASTER=yesIPADDR=192.168.1.1NETMASK=255.255.255.0ONBOOT=yesBOOTPROTO=noneBONDING_OPTS=”bonding parameters separated by spaces”… Read More »

Systemd – Systemctl In Rhel7/Centos7

Systemd is a system and service manager for Linux, compatible with SysV and LSB init scripts. systemd provides aggressive parallelization capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, keeps track of processes using Linux cgroups, supports snapshotting and restoring of the system state, maintains mount and automount points and… Read More »

Docker+Juno Giving MissingSectionHeaderError while creating docker instance

I was able to configure the docker with Juno by following The instructions in http://www.adminz.in/2014/11/integrating-docker-into-juno-nova.html First I got an time out error with the docker service, the nova service was not starting up then I edited the connectionpool.py as told in the following URL. http://www.adminz.in/2014/11/docker-n… After that the service was running fine but While launching… Read More »

Integrating Docker into Juno Nova Service as a Hypervisor

Installing Python Modules Needed for Docker===========================================yum install -y python-sixyum install -y python-pbryum install -y python-babelyum install -y python-openbabelyum install -y python-oslo-*yum install -y python-docker-py Installing Latest Version of Docker==================================yum install wgetwget http://cbs.centos.org/kojifiles/packages/docker/1.2.0/4.el7.centos/x86_64/docker-1.2.0-4.el7.centos.x86_64.rpmwget http://cbs.centos.org/kojifiles/packages/docker/1.2.0/4.el7.centos/x86_64/docker-devel-1.2.0-4.el7.centos.x86_64.rpmwget http://cbs.centos.org/kojifiles/packages/docker/1.2.0/4.el7.centos/x86_64/docker-pkg-devel-1.2.0-4.el7.centos.x86_64.rpmyum install docker-* Starting the Docker Service===========================systemctl start dockersystemctl status dockersystemctl enable docker Installing and configuring Nova-Docker Driver=============================================yum install -y python-pip gitpip… Read More »

Docker + Nova Time Out Error

http://paste.openstack.org/show/131728/ Sample Error==========    out = f(*args, **kwds)  File “/usr/lib/python2.7/site-packages/requests/sessions.py”, line 468, in get    return self.request(‘GET’, url, **kwargs)  File “/usr/lib/python2.7/site-packages/novadocker/virt/docker/client.py”, line 36, in wrapper    out = f(*args, **kwds)  File “/usr/lib/python2.7/site-packages/requests/sessions.py”, line 456, in request    resp = self.send(prep, **send_kwargs) File “/usr/lib/python2.7/site-packages/novadocker/virt/docker/client.py”, line 36, in wrapper    out = f(*args, **kwds) File “/usr/lib/python2.7/site-packages/requests/sessions.py”, line 559, in… Read More »

Removing Nova and Neutron Services from Mysql

Some times we need to remove the services listed in the Nova or neutron as they are duplicated or they are removed from the entire system. So we can do it in the following way. Removing Nova Service from Mysql Database.  >>nova service-list>>nova hypervisor-list mysql> use nova;mysql> SELECT id, created_at, updated_at, hypervisor_hostname FROM compute_nodes; mysql>… Read More »

Parse Error Caused Due to Blank Space Before the entries.

   I noticed that in Openstack Juno if there are white spaces on the beginning of lines containing ‘key’ = ‘value’ we get parse error in the logs. Sample Error. Nov 06 13:29:42 controller.novalocal neutron-server[14563]: File “/usr/lib64/python2.7/argparse.py”, line 1794…ionNov 06 13:29:42 controller.novalocal neutron-server[14563]: action(self, namespace, argument_values, option_string)Nov 06 13:29:42 controller.novalocal neutron-server[14563]: File “/usr/lib/python2.7/site-packages/oslo/config…l__Nov 06 13:29:42 controller.novalocal neutron-server[14563]:… Read More »

Docker with Openstack Giving Error “ova.openstack.common.threadgroup ValueError: Timeout value connect was Timeout”

When I try to integrate Docker to Openstack Juno, I am not able to start the nova service in the compute node. I followed https://wiki.openstack.org/wiki/Docker . When I remove or comment out #compute_driver = novadocker.virt.docker.DockerDriver from nova configuration, the service is able to start but the pid gets killed soon. I am getting following error… Read More »

Squid Proxy Server

Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests; to caching web, DNS and other computer network lookups for a group of people sharing network resources; to aiding security by filtering traffic. Although primarily used for HTTP and… Read More »

Installing Swish Module for php

Swish package does not comes with current repo’s of centos or redhat so we need to compile and install it before installing the swish package through the pecl. Else we may end up in error while installing Swish package with pecl Downloading and installing the swish packages.wget http://swish-e.org/distribution/swish-e-2.4.7.tar.gztar zxvf swish-e-2.4.7.tar.gzcd swish-e-2.4.7./configuremakemake checkmake install cd ~… Read More »

Installing PHP modules using pecl command.

Once you have installed the php you need to install needed modules to support the development process. we can use the pecl function to install the modules. To install pecl function. yum install php-pear Now to install needed modules just use pecl pecl install <Module Name> To install a beta versionpecl install <Module Name>-beta To… Read More »

Installing PHP 5.6 in Centos6/7

Compiling php can be difficult some time. But We can just install the latest version of php from proper remi repo. Install Remi repository CentOS and Red Hat (RHEL)Remi and EPEL (Dependency) on CentOS 7 and Red Hat (RHEL) 7 64 bit : yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpmyum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm Remi and Epel repo (… Read More »

Openstack Juno – Neutron HA using VRRP (Keepalived)

First configure two neutron server’s. Let that be network and network1 .http://www.adminz.in/2014/10/openstack-juno-part-5-neutron.html Then install Keepalived in both the neutron server’s. #Added Following entries in both neutron server#in  /etc/neutron/neutron.confl3_ha = True#And the HA Scheduler has to be used :router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceSchedulernetwork_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler In Controller Server Database updateneutron-db-manage –config-file=/etc/neutron/neutron.conf  –config-file=/etc/neutron/plugins/ml2/ml2_conf.ini upgrade head   mkdir /etc/neutron/rootwrap.dcp /usr/share/neutron/rootwrap/l3.filters… Read More »

Removing Blank Lines from the File.

In sed Type the following sed command to delete all empty files: Display with out Blank Linessed ‘/^$/d’ input.txt Remove all the Blank Lines from filesed -i ‘/^$/d’ input.txtcat input.txt In awk  Type the following awk command to delete all empty files: Display with out Blank Linesawk NF input.txt Remove all the Blank Lines from fileawk… Read More »

Openstack Juno Part 6 – Neutron Configuration on Compute Service

Installing the packages yum install openstack-neutron-ml2 openstack-neutron-openvswitch ipset -y Configure the Service #Replace NEUTRON_PASS with the password you chose for the neutron user in the Identity service.openstack-config –set /etc/neutron/neutron.conf DEFAULT auth_strategy keystoneopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000/v2.0openstack-config –set /etc/neutron/neutron.conf keystone_authtoken identity_uri http://controller:35357openstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_tenant_name serviceopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_user neutronopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_password… Read More »

Openstack Juno Part 5 – Neutron configuring Network Node

Installing the Packages yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch ipset  -y Configuring  the Serviceopenstack-config –set /etc/neutron/neutron.conf DEFAULT auth_strategy keystoneopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000/v2.0openstack-config –set /etc/neutron/neutron.conf keystone_authtoken identity_uri http://controller:35357openstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_tenant_name serviceopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_user neutronopenstack-config –set /etc/neutron/neutron.conf keystone_authtoken admin_password mar4neutron openstack-config –set /etc/neutron/neutron.conf DEFAULT rpc_backend rabbitopenstack-config –set /etc/neutron/neutron.conf DEFAULT rabbit_host controlleropenstack-config –set… Read More »

Openstack Juno + Docker error “Docker daemon is not running or is not reachable”

I was getting following error while integrating docker with Openstack Juno.“2014-10-20 14:24:22.954 2995 TRACE nova.openstack.common.threadgroup     _(‘Docker daemon is not running or is not reachable’2014-10-20 14:24:22.954 2995 TRACE nova.openstack.common.threadgroup NovaException: Docker daemon is not running or is not reachable (check the rights on /var/run/docker.sock)“I tried changing the permission of the docker.sock but that didn’t… Read More »

Openstack Juno Part 4 neutron – Controller.

Create the Mysql Database   create database neutron; GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@’localhost’ IDENTIFIED BY ‘mar4neutron’;GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@’%’ IDENTIFIED BY ‘mar4neutron’;GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@’10.0.0.211’ IDENTIFIED BY ‘mar4neutron’;GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@’10.0.0.212’ IDENTIFIED BY ‘mar4neutron’;flush privileges; Create keystone Endpoints and user’ssource /root/admin-openrc.shkeystone user-create –name neutron –pass… Read More »

Failed to issue method call: Unit iptables.service failed to load In Centos7

In RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments. It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service: systemctl stop firewalldsystemctl mask firewalldThen, install the iptables-services package: yum install iptables-servicesEnable the… Read More »

Logstash to parse Local files,apache/niginx Logs

Filters in logstach Filters are an in-line processing mechanism which provide the flexibility to slice and dice your data to fit your needs. Let’s see one in action, namely the grok filter. input { stdin { } } filter {  grok {    match => { “message” => “%{COMBINEDAPACHELOG}” }  }  date {    match =>… Read More »

Log Monitoring WIth Kibana+Logstash+elasticsearch

Centralized logging using Logstash and elasticsearch  can be very useful when attempting to identify problems with your servers or applications, as it allows you to search through all of your logs in a single place. Installing Java  yum install java-1.7.0-openjdk-* Install Elasticsearch yum install https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.noarch.rpm Elasticsearch is now installed. Let’s edit the configuration:/etc/elasticsearch/elasticsearch.yml Add the… Read More »

Poodle-SSLv3 Vulnerability

A vulnerability in SSLv3 encryption protocol was disclosed. This vulnerability, known as  POODLE (Padding Oracle On Downgraded Legacy Encryption), allows an attacker to read information encrypted with this version of the protocol in plain text using a man-in-the-middle attack. Although SSLv3 is an older version of the protocol which is mainly obsolete, many pieces of… Read More »

Openstack Juno -Part 3 -Compute service Nova

  Creating Nova Database create database nova; GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@’localhost’ IDENTIFIED BY ‘mar4nova’;GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@’%’ IDENTIFIED BY ‘mar4nova’;GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@’10.0.0.200’ IDENTIFIED BY ‘mar4nova’;GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@’10.0.0.202’ IDENTIFIED BY ‘mar4nova’;flush privileges; Configuring User’s in keystonesource admin-openrc.shkeystone user-create –name nova –pass mar4nova –email EMAIL_ADDRESSkeystone… Read More »

Openstack Juno – Part 2 – Image Service Glance

Create the database create database glance;GRANT ALL PRIVILEGES ON glance.* TO ‘glance’@’localhost’ IDENTIFIED BY ‘mar4glance’;GRANT ALL PRIVILEGES ON glance.* TO ‘glance’@’%’ IDENTIFIED BY ‘mar4glance’;GRANT ALL PRIVILEGES ON glance.* TO ‘glance’@’10.0.0.200’ IDENTIFIED BY ‘mar4glance’;flush privileges; Creating the Keystone Endpoints and User’ssource /root/admin-openrc.shkeystone user-create –name=glance –pass=mar4glance –email=glance@example.comkeystone user-role-add –user=glance –tenant=service –role=adminkeystone service-create –name=glance –type=image –description=”OpenStack Image Service”keystone endpoint-create… Read More »

Openstack Juno -Part 2 -Keystone

Keystone : The Identity Service  Create the database $ mysql -u root -pCREATE DATABASE keystone;GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@’localhost’ IDENTIFIED BY ‘ram4key’;GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@’%’ IDENTIFIED BY ‘ram4key’;GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@’10.0.0.200’ IDENTIFIED BY ‘ram4key’;flush privileges; Install the Packages yum install openstack-keystone python-keystoneclient -y Configure the Service  openstack-config… Read More »

Openstack Juno- Part 1 – Basic Configuration

Juno is the latest version of Openstack which is expected to once of the main milestone in the Openstack releases with a good set of updated to all the Services and First one of its series which will run over Rhel/Centos 7 Making Selinux to Permissive ON ALL THE NODE=============================================sed -i “s/SELINUX=.*/SELINUX=permissive/g” /etc/sysconfig/selinuxsed -i “s/SELINUX=.*/SELINUX=permissive/g”… Read More »