How to configure cloudkitty in devstack - openstack

I need some documentation or guide which demonstrates me the installation of cloudkitty in my openstack Devstack.
I have tried installing the same using the following guide:
https://wiki.openstack.org/wiki/CloudKitty/Devstack
But It doesn't seems to be working.
Actually its showing error as follows while setting up itself.
I am not getting cloudkitty setted up.
When I am trying to setup using cloudkitty in following command error is occurring:
enable_plugin cloudkitty https://github.com/stackforge/cloudkitty master
/opt/devstack/.localrc.auto: line 46: enable_plugin: command not found

After some necessary research I can be able to find the way for setting up the Cloudkitty in Devstack.
This is sample way of installing the same.
git clone git://git.openstack.org/openstack-dev/devstack
cd devstack
cat > local.conf << EOF
[[local|localrc]]
# ceilometer
enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
enable_service ceilometer-api
# horizon
enable_service horizon
# cloudkitty
enable_plugin cloudkitty https://github.com/stackforge/cloudkitty master
enable_service ck-api ck-proc
EOF
./stack.sh
Link for the same:
https://wiki.openstack.org/wiki/CloudKitty/Devstack
But this will work only with Devstack KILO Version.
Reason is that enable_plugin is not supported in Version lower than KILO.
In case we need to setup the Cloudkitty in Devstack which is lower than KILO version, you can use the following Guide, which demonstrates the way of setting up the Cloudkitty in Devstack.
http://cloudkitty.readthedocs.org/en/latest/installation.html

Related

how to set local redis repository in helm?

I try to install Redis for tyk with my company's local jfrog repository but I am facing the following issue.
I am using Helm v3.8.2.
helm install redis tyk-helm/simple-redis --set image.repository=images.artifactory.mycompany.com/redis -n tyk
Error: unknown flag: --set image.repository
can you help me figure out how to solve this issue? I am new to using helm.
The error seems to be complaining of an unknown flag image.repository. Did you try running the command written here
helm install tyk-redis bitnami/redis -n tyk

Error: Error trying install composer runtime. Error: Connect Failed

Prog:dist abhishek$ composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString
Deploying business network from archive: my-network.bna
Business network definition:
Identifier: my-network#0.1.6
Description: My Commodity Trading network
✖ Deploying business network definition. This may take a minute...
Error: Error trying deploy. Error: Error trying install composer runtime. Error: Connect Failed
Command failed
when trying to install the composer runtime,returns
Prog:dist abhishek$ composer runtime install -n my-network -p hlfv1 -i PeerAdmin -s randomString
✖ Installing runtime for business network my-network. This may take a minute...
Error: Error trying install composer runtime. Error: Connect Failed
Command failed
I've been working through the Hyperledger Composer tutorial (https://hyperledger.github.io/composer/tutorials/developer-guide.html) on an older Mac, running OS X Mavericks 10.9.5, which means I'm using Docker Toolbox instead of Docker for Mac. I encountered the same error message when deploying the sample Trading network .bna file on my local dev environment Fabric network.
Here is the command in Terminal:
$ composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString -A admin -S
And here is the error log:
Error: Error trying deploy. Error: Error trying install composer runtime. Error: Connect Failed
In my case, it was because Docker Toolkit answers to on an IP address assigned when you start docker, instead of localhost, 127.0.0.1, etc.
If you are also using Docker Toolkit and are getting the same error, first find the docker IP number, which should be listed under the Docker Whale logo in Terminal when you started it, and then edit the following files (TextEdit should be fine), changing all references to localhost and 127.0.0.1 to the IP number (leave the ports, such as :7050, there):
fabric-tools/fabric-scripts/hlfv1/composer/configtx.yaml
fabric-tools/fabric-scripts/hlfv1/composer/docker-compose.yml
fabric-tools/fabric-scripts/hlfv1/createComposerProfile.sh
fabric-tools/fabric-scripts/hlfv1/createPeerAdminCard.sh
Then, back in Terminal, navigate back to fabric-tools, and if Fabric is already started, stop it, and then recreate the Composer Profile, as documented:
$ ./stopFabric.sh
$ ./createComposerProfile.sh
The log should now show the Docker Toolkit IP for the orderers, CA and peers. Now restart Fabric:
$ ./startFabric.sh
Navigate back to fabric-tools/my-network/dist and re-run the compose command, and if all goes well, it should connect properly.
Is your Fabric running? What is the output of docker ps?
Try doing the next:
Pick a directory that you want and install Hyperledger Fabric and Hyperledger Composer Playground running:
curl -sSL https://hyperledger.github.io/composer/install-hlfv1.sh | bash
Then run your command.
Try the code below:
$composer runtime install -c PeerAdmin#hlfv1 -n basic
$composer network deploy -a basic.bna -A admin -S adminpw -c PeerAdmin#hlfv1 -f admincard

IJulia package installation

Is there a way around the following error when trying to install IJulia package in Windows 7 Enterprise?
julia> Pkg.add("IJulia")
INFO: Initializing package repository C:\Users\user01\.julia\v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=No error
ERROR: failed process: Process(`git clone -q -b metadata-v2
git://github.com/JuliaLang/METADATA.jl METADATA`, ProcessExited(128))
[128] in run at process.jl:531
Thanks
If I need to use a proxy, how do I specify that in the Julia console?
Finally found the solution on Google Groups.
Basically, (assuming you already have git installed) I had to run each of the following 3 lines from the Windows 7 Powershell:
git config --global url."https://github.com/".insteadOf git://github.com/
git config --global http.proxy http://<proxyuser>:<proxypwd>#proxy.server.com:8080
git config --global https.proxy http://<proxyuser>:<proxypwd>#proxy.server.com:8080
where: <proxyuser> is your username, <proxypwd> is your password, proxy.server.com is your proxy address, and 8080 is the proxy port.
Hope this helps.

Instance creation in devstack icehouse

I want to create few instance having ubuntu installed on it using openstack.
I tried following steps
Approach 1
installed icehouse devstack
git clone -b stable/icehouse https://github.com/openstack-dev/devstack.git
cd devstack
./stack.sh
after successful installation i uploaded a ubuntu image
glance image-create --name Ubuntu --disk-format iso --container-format bare <~/sumit/images/ubuntu-14.04.2-desktop-amd64.iso
login to dashboard and launch the instance (m1.small, RAM GB, total disk 20GB) using this image.
open the instance console from horizon dashboard and try to install ubuntu
Βut it shows required space(6.5GB) in not available.
Τhen I tried to install neutron and heat also
Approach 2
installed icehouse devstack
git clone -b stable/icehouse https://github.com/openstack-dev/devstack.git
cd devstack
vi localrc
my localrc looks like
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=$DEST/logs/screen
ADMIN_PASSWORD=password
MYSQL_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=openstack
SERVICE_TOKEN=tokentoken
GLANCE_BRANCH=stable/icehouse
HORIZON_BRANCH=stable/icehouse
KEYSTONE_BRANCH=stable/icehouse
NOVA_BRANCH=stable/icehouse
NEUTRON_BRANCH=stable/icehouse
HEAT_BRANCH=stable/icehouse
CEILOMETER_BRANCH=stable/icehouse
DISABLED_SERVICES=n-net ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-metering,neutron
ENABLED_SERVICES+=,q-lbaas
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
HEAT_STANDALONE=True
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval
After this
./stack.sh
after successful installation Ι uploaded a ubuntu image
glance image-create --name Ubuntu --disk-format iso --container-format bare <~/sumit/images/ubuntu-14.04.2-desktop-amd64.iso
login to dashboard and launch the instance (m1.small, RAM GB, total disk 20GB) using this image.
But now it displays
Error: Unable to connect to Neutron
Every time Ι list the instance it displays same error.
Can anyone help me out to overcome all these problems so that Ι can launch some instances and install ubuntu on that.
Unable to connect can be because neutron service is not running. Through Dashboard you cannot create instance without network. Use screen command in devstack to check if neutron is running properly.

Error: Unable to initialize gtk, is DISPLAY set properly?

I'm trying to run Image application from server "bert"
I connected through my OSX Maverick as
ssh ak324#bert.eecs.qmul.ac.uk
I compiled my file with
$ make
but when I run the resulting file
$ ./window
it gives me the following error:
Error: Unable to initialize gtk, is DISPLAY set properly?
How can I solve this problem?
You should connect with the -X or -Y option to be able to launch graphical applications:
ssh -X ak324#bert.eecs.qmul.ac.uk
If that doesn't help, you should consult /etc/ssh/sshd_config whether X11Forwarding is enabled.
On macOS you need to install xquartz for x11 support https://support.apple.com/de-de/HT201341.
Then you can connect with
ssh -Y ak324#bert.eecs.qmul.ac.uk
Try running ssh with the flags -Y -v.
If the following line appears on the terminal during the ssh connection, install xauth on your remote system.
debug1: Remote: No xauth program; cannot forward with spoofing.
As suggested here.

Resources