Posts

Openstack Keystone : 'Client' object has no attribute 'service_catalog'

When I try the following command on my setup keystone catalog or keystone token-get I get the following error 'Client' object has no attribute 'service_catalog' When I run in debug mode I can see that the issue is client side. I checked my environment variables env | grep --perl "^OS|^SERV" the variables SERVICE_ENDPOINT and SERVICE_TOKEN were defined and taking precedence Doing following resolved it export SERVICE_TOKEN= export SERVICE_ENDPOINT=  

Openstack Keystone : No handlers could be found for logger "keystoneclient.client"

When I hit the the command Keystone user-list I get the following error No handlers could be found for logger "keystoneclient.client" Invalid OpenStack Identity credentials.  If you run the command in debug mode keystone --debug user-list you get the following response send: 'GET /v2.0//users HTTP/1.1\r\nHost: 10.1.1.1:35357\r\nx-auth-token: 012345\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n' reply: 'HTTP/1.1 401 Not Authorized\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Date: Wed, 16 Jan 2013 08:58:36 GMT header: Transfer-Encoding: chunked No handlers could be found for logger "keystoneclient.client" connect: (10.128.176.48, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.128.176.48:5000\r\nContent-Length: 87\r\nx-auth-token: 12345\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth...

PaaS : Cloud Application Platforms

Cloud is having a thunderstorm these days. All the buzzbowrds related to cloud are raining everywhere and Cloud in itself is sweeping IT in all facets. I have no intentions of creating further confusion by "Cloud Application Platform". The sole intension is to put my perspective ( with comments and deviations most welcomed ). Slight flashback When we start reading about cloud, everyone comes accross 3 "is-a-Service". Iaas (Infrasructure as a Service), PaaS (Platform as a Service) and SaaS (Software as a Service). IaaS  - Model in which hardware infrastucture is rented out by the Infrastructure provider and charged as per usage. In this case the user would not want to maintain the physical infrastructure itself. SaaS  - Model in which applications are hosted by a provider or a vendor and made available over a network. It can be considered as the next level of IaaS PaaS  - It can be considered as the middle path of IaaS and PaaS. It is not a finished produc ...

REST Design Pattern and Best Practices

Image
There is lot of material available on net about the REST design pattern and REST way of services but still to get started you need to read a few before you could make a call. I have tried to summarize my beginning to make it easier for others. REST: The Style of Architecture REST ( REpresentation State Transfer) is the way the whole web is organized. Web is a collection of resources which can be identified with a URI which are globally identifiable. People do struggle to define REST. One wrong statement is "REST is a communication Protocol". REST is not protocol; it is just a style of software architecture for distributed system. REST style of Architecture shows following characteristics: As opposed to the procedure based approach of SOAP, REST follows the action based approach to act on a resource. The actions can be described in the form of four verbs: (In HTTP world these are referred to as Methods. T...

Application logging through SLF4J : Quick Reference

The detailed information on SLF4J is available on http://www.slf4j.org . The primary reason of writing the blog is that there is lot of information but usually people do not have the time to do into the details, hense a quick reference is required to get it going. So I would be trying to put forward all the important aspects. The Simple Logging Facade for Java or (SLF4J) serves as a simple facade or abstraction for various logging frameworks, e.g. java.util.logging, log4j and logback, allowing the end user to plug in the desired logging framework at deployment time. Reason The obvious next question was that this is what JCL (Jakarta Commons Logging: http://commons.apache.org/ ) is all about. Why was the need for another facade? SLF4J does answer to few of drawbacks but there is no specific answer to why JCL was not modified. The drawbacks which are taken care as part of SLF4J are: Parameterized log messages solve an important problem associated with logging performance. Mark...

Cloud Elasticity or Scalability, Whats the Difference?

I have heard and read at lot of places about Elasticity and Scalability of the cloud. In a discussion the point came across that what actually is the difference between Elasticity and the Scalability, when it comes to cloud. I myself could not find the demarcation, so I searched around the web. But to my surprise lot of people on the articles conviniently use Elasticity and Scalability interchangeably in relation the cloud. After reading around I could not find the answer, so I though to put my own thoughts since I dont agrre that both is same and let people decide if my understanding is right or not. What means by Elasticity in relation to cloud is that it could scale up or down the infrastructure to meet the requirement. Elasticity is about instantly bringing you the necessary resource when you need it and instantly decommission them when you don't need it. Elasticity is an important feature of the cloud offering as you are charged only during the time when you are using it. Sc...

Unable to load default SVN client

While installing the subversion plugin Subclipse in the Eclipse IDE I came across a problem. Subclipse uses "JavaHL (JNI)" to interface with subversion by default. Initially I was getting the following error message when accessing Windows->Preferences->Team->SVN->SVN Interface dropdown: JavaHL (JNI) Not Available When attempting to view a repository via the "SVN Repository Exploring" perspective I got a different error message: Unable to load default SVN client So I installed the below package sudo apt-get install libsvn-java Still the problem continued and I realized that I need to provide the liberary to Eclipse (3.6 Helios) I choose to set the path to the JavaHL libraries via a command line argument. I accomplished this by setting my Launcher icon for Eclipse to use the command /path/to/eclipse -vmargs -Djava.library.path=/usr/lib/jni Another option is to set the LD_LIBRARY_PATH environment variable to point to the /usr/lib/jni in your .profile file. ...