Ask Your Question

RohitGupta's profile - activity

2016-04-13 22:23:57 -0500 received badge  Famous Question (source)
2015-03-11 14:45:39 -0500 received badge  Taxonomist
2013-11-16 19:27:16 -0500 received badge  Famous Question (source)
2013-11-16 19:27:16 -0500 received badge  Notable Question (source)
2013-11-16 19:27:16 -0500 received badge  Popular Question (source)
2013-11-04 06:31:19 -0500 received badge  Notable Question (source)
2013-09-26 06:05:06 -0500 received badge  Famous Question (source)
2013-09-05 05:39:50 -0500 received badge  Famous Question (source)
2013-08-28 02:21:42 -0500 received badge  Notable Question (source)
2013-08-27 07:21:04 -0500 received badge  Popular Question (source)
2013-08-27 06:19:42 -0500 commented answer Service MySQL start fail on galera 2nd node

Hi, Thanks for the reply!! -- I have disabled the firewall "ufw disable" on both the nodes. The following are the iptables --list output on both the nodes: root@control2:~# iptables --list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:4567 ACCEPT tcp -- anywhere anywhere tcp dpt:MySQL The netstat -ntp output on node2 is: root@control2:~# netstat -ntp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 10.0.0.146:4444 10.0.0.145:60256 ESTABLISHED 10077/rsync tcp 0 0 10.0.0.146:60747 10.0.0.145:4567 ESTABLISHED 10021/mysqld tcp 0 0 192.168.4.229:22 192.168.4.26:56064 ESTABLISHED 2060/sshd: control2 Please check the PS: section on the questions - I have added the error message.

2013-08-27 03:28:12 -0500 received badge  Popular Question (source)
2013-08-23 09:45:46 -0500 asked a question Service MySQL start fail on galera 2nd node

Hi Experts,

I am using 2 nodes for Galera clustering on ubuntu 12.04 and receiving the following output on node 1:

mysql> SHOW STATUS LIKE 'wsrep%'
 -> ;
+----------------------------+--------------------------------------+
| Variable_name | Value |
+----------------------------+--------------------------------------+
| wsrep_local_state_uuid | 7dbb763b-0bea-11e3-0800-36c52d70d461 |
| wsrep_protocol_version | 4 |
| wsrep_last_committed | 1 |
| wsrep_replicated | 1 |
| wsrep_replicated_bytes | 203 |
| wsrep_received | 2 |
| wsrep_received_bytes | 133 |
| wsrep_local_commits | 0 |
| wsrep_local_cert_failures | 0 |
| wsrep_local_bf_aborts | 0 |
| wsrep_local_replays | 0 |
| wsrep_local_send_queue | 0 |
| wsrep_local_send_queue_avg | 0.000000 |
| wsrep_local_recv_queue | 0 |
| wsrep_local_recv_queue_avg | 0.500000 |
| wsrep_flow_control_paused | 0.000000 |
| wsrep_flow_control_sent | 0 |
| wsrep_flow_control_recv | 0 |
| wsrep_cert_deps_distance | 1.000000 |
| wsrep_apply_oooe | 0.000000 |
| wsrep_apply_oool | 0.000000 |
| wsrep_apply_window | 1.000000 |
| wsrep_commit_oooe | 0.000000 |
| wsrep_commit_oool | 0.000000 |
| wsrep_commit_window | 1.000000 |
| wsrep_local_state | 4 |
| wsrep_local_state_comment | Synced (6) |
| wsrep_cert_index_size | 2 |
| wsrep_causal_reads | 0 |
| wsrep_cluster_conf_id | 1 |
| wsrep_cluster_size | 1 |
| wsrep_cluster_state_uuid | 7dbb763b-0bea-11e3-0800-36c52d70d461 |
| wsrep_cluster_status | Primary |
| wsrep_connected | ON |
| wsrep_local_index | 0 |
| wsrep_provider_name | Galera |
| wsrep_provider_vendor | Codership Oy <info@codership.com> |
| wsrep_provider_version | 23.2.1(r129) |
| wsrep_ready | ON |
+----------------------------+--------------------------------------+
39 rows in set (0.00 sec)

On 2nd node: The Service MySQL fails to start - in /var/log/syslog

Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: GMCast version 0
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: (c008d869-0c10-11e3-0800-146570776113, 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: (c008d869-0c10-11e3-0800-146570776113, 'tcp://0.0.0.0:4567') multicast: , ttl: 1
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: EVS version 0
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: PC version 0
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: gcomm: connecting to group 'controller_cluster', peer '10.0.0.145:'
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: declaring 130214d4-0c0e-11e3-0800-27da27176580 stable
Aug 23 17:26:23 control2 mysqld: 130823 17:26:23 [Note] WSREP: view(view_id(PRIM,130214d4-0c0e-11e3-0800-27da27176580,6) memb {
Aug 23 17:26:23 control2 mysqld: #011130214d4-0c0e-11e3-0800-27da27176580,
Aug 23 17:26:23 control2 mysqld: #011c008d869-0c10-11e3-0800-146570776113,
Aug 23 17:26:23 control2 mysqld: } joined {
Aug 23 17:26:23 control2 mysqld: } left {
Aug 23 17:26:23 control2 mysqld: } partitioned {
Aug 23 17:26:23 control2 mysqld: })
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: gcomm: connected
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: Changing maximum packet size to 64500, resulting msg size: 32636
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0)
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: Opened channel 'controller_cluster'
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: Waiting for SST to complete.
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 1, memb_num = 2
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: STATE EXCHANGE: Waiting for state UUID.
Aug 23 17:26:24 control2 mysqld: 130823 17:26:24 [Note] WSREP: STATE EXCHANGE: sent state msg: c059b4f5-0c10-11e3-0800-90932b673ef2 ...
(more)
2013-08-17 02:44:02 -0500 received badge  Notable Question (source)
2013-08-12 08:10:56 -0500 received badge  Popular Question (source)
2013-08-12 08:07:13 -0500 received badge  Famous Question (source)
2013-08-09 09:17:21 -0500 answered a question boto.exception.S3ResponseError: S3ResponseError: 404 Not Found

Chmouel's help solved the issue - thanks Chmouel.

2013-08-09 09:16:07 -0500 answered a question verify s3 emulation with swift?

Chmouel's help have solved this issue. Thanks brother

2013-08-09 06:00:54 -0500 asked a question boto.exception.S3ResponseError: S3ResponseError: 404 Not Found

Dear Forum,

I have followed the below document to configure S3 emulation with Swift using Keystone as Auth middleware: http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-swift-with-s3-emulation-to-use-keystone.html

I have deployed multi node setup of swift whereby my keystone server, proxy server and storage nodes are separate servers. For assumption: Keystone Server: 10.0.0.151 Proxy Server: 10.0.0.154 Storage node: 10.0.0.155

In order to verify S3 is properly configured or not I am using Boto code on the Swift Proxy server with the following commands:

import boto 
import boto.s3.connection
connection = boto.connect_s3(aws_access_key_id='service:swift',
                             aws_secret_access_key='swift',
                             port=5000, host='10.0.0.151', is_secure=False,
                             calling_format=boto.s3.connection.OrdinaryCallingFormat())

connection.create_bucket('my_first_bucket')

I have given the Host, port aws_access_key_id, aws_secret_access_key considering I need to connect with Keystone server and not proxy server. Besides the following swift command is working fine and showing the containers\objects properly: swift -V 2.0 -A http://10.0.0.151:5000/v2.0 -U service:swift -K swift stat

I am getting the following error message:

Traceback (most recent call last):
  File "boto_test.py", line 11, in <module>
    connection.create_bucket('my_first_bucket')
  File "/usr/local/lib/python2.7/dist-packages/boto-2.9.9-py2.7.egg/boto/s3/connection.py", line 504, in create_bucket
    response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 404 Not Found

Please suggest!!

2013-08-09 01:45:48 -0500 received badge  Nice Answer (source)
2013-08-08 11:43:25 -0500 received badge  Self-Learner (source)
2013-08-08 11:43:25 -0500 received badge  Teacher (source)
2013-08-08 05:53:38 -0500 asked a question verify s3 emulation with swift?

Hi Experts,

Please note: I have deployed multi node setup whereby controller node, proxy node and storage nodes are separate and Swift is working fine from horizon. The question is raised as I am having few doubts in S3 emulation with swift.

I have used the following docs to install and configure the proxy server and Keystone.conf for S3 emulation with Swift: http://docs.openstack.org/trunk/openstack-object-storage/admin/content/configuring-openstack-object-storage-with-s3_api.html http://docs.openstack.org/grizzly/openstack-object-storage/admin/content/configuring-openstack-object-storage-with-s3_api.html

Now, how can I test if S3 is working properly from windows platform or proxy server using boto or anything you suggest as I tried following the above docs but none of them gives clear steps to use boto alone.

I have downloaded Cloudberry explorer for openstack before to test with swift and it worked. Now I have downloaded cloudberry explorer for amazon S3 and in it I am trying to create an account for "S3 compatible" and confused as to what should be entered into "Service point" field? some of the docs says to enter the proxyserver ip address but as per my knowkedge its only possible if I am using Swauth or Tempauth as auth - what should be when I am using keystone as an auth and it resides on a separate server.

If you are not familiar with cloudberry then please suggest any other client for windows to test and verify the installation.

I would appreciate your kind suggestion as I am stuck at this point - thanks in advance .

2013-08-08 00:53:40 -0500 received badge  Student (source)
2013-08-07 11:35:29 -0500 answered a question Swift S3 error: No module named s3_token

I have resolved this issue- need to perform the following 2 steps:

  • Step 1: as s3_token is a part of keystone and not keystoneclient, hence i have to install python-keystone on the proxy server.
  • step 2: i have to replace the line paste.filter_factory = keystoneclient.middleware.s3_token:filter_factory to paste.filter_factory = keystone.middleware.s3_token:filter_factory

after the above 2 steps my proxy-service is running.

2013-08-07 11:20:27 -0500 commented question Swift Error - unable to retrieve container list created yesterday but able to create new containers and upload them with objects

Hi Smaffuli, Sorry but I am new to this field and learning quickly. If you can specify which log I have to check and on which server as I have deployed multi node setup whereby I have separate servers running controller, proxyserver, storagenode? please specify - thanks

2013-08-07 08:57:13 -0500 received badge  Notable Question (source)
2013-08-07 08:51:33 -0500 commented answer Swift S3 error: No module named s3_token

Hi Rahmu, As requested i have edited the question with more details into it. Another thing - I am using "keystoneclient.middleware.s3_token:filter_factory" but when I see the folder location then i cant see s3_token.py: root@proxy:/usr/lib/python2.7/dist-packages/keystoneclient/middleware# ls auth_token.py __init__.py memcache_crypt.py test.py auth_token.pyc __init__.pyc memcache_crypt.pyc test.pyc root@proxy:/usr/lib/python2.7/dist-packages/keystoneclient/middleware# Does keystoneclient support s3_token? why s3_token.py is missing and can it be the cause for the error message?

2013-08-07 08:48:31 -0500 received badge  Editor (source)
2013-08-07 07:29:46 -0500 commented answer Swift S3 error: No module named s3_token

Hi Experts, On further research - as I have a multi node setup whereby keystone: 10.0.0.151 proxy server 10.0.0.154 I am using keystoneclient in the proxy-server.conf and if i see the middleware available in the following folder, then i cant see s3_token.py: root@proxy:/usr/lib/python2.7/dist-packages/keystoneclient/middleware# ls auth_token.py __init__.py memcache_crypt.py test.py auth_token.pyc __init__.pyc memcache_crypt.pyc test.pyc root@proxy:/usr/lib/python2.7/dist-packages/keystoneclient/middleware# Does keystoneclient support s3_token? why s3_token.py is missing and can it be the cause for the error message?

2013-08-07 07:29:46 -0500 received badge  Commentator
2013-08-07 06:48:54 -0500 commented answer Swift S3 error: No module named s3_token

Rahmu - any other suggestion?

2013-08-07 05:10:55 -0500 received badge  Popular Question (source)
2013-08-07 04:50:20 -0500 commented answer Swift S3 error: No module named s3_token

one more question - in your previous post you uploaded your server output of apt-cache search swift3 swift-plugin-s3 - swift3 (S3 compatibility) middleware plugin for swift ,whereas my output does not says S3 compatibility before middleware. and your candidate version is 1.7-3 as compared to mine 1.0.0 --- do you think this has something to do with the issue.

2013-08-07 04:48:01 -0500 commented answer Swift S3 error: No module named s3_token

I have used the following link to install Swift: http://docs.openstack.org/trunk/openstack-object-storage/admin/content/configuring-openstack-object-storage-with-s3_api.html Firstly, I tried installing by apt-get install swift-python-s3, but it didn't installed and gave unable to locate package. then I installed by following these commands: git clone https://github.com/fujita/swift3.git cd swift3; git checkout v1.7 python setup.py install After that I configured the proxy server and got the error message while starting the proxy services. You wont believe after the above commands, when I tried again apt-get install swift-python-s3 command. I was able to install this too.

2013-08-07 04:33:34 -0500 commented answer Swift S3 error: No module named s3_token

Rahmu - The swift version is showing 1.0, which I thing is very old. can this be the cause of issue? if yes then how can I update it to the latest version?

2013-08-07 04:31:03 -0500 commented answer Swift S3 error: No module named s3_token

I have one more question for clarification - we are building the openstack staging to test how our application will work with swift object storage. Currently we are hosting ec2 and S3 storage with amazon and our future plan is to build swift and have our own private cloud. Now I know that swift works on Rest API's and our 3rd party application uses S3 api to communicate with amazon objects. Now do I really need this S3 emulation with swift for my 3rd party apps to work with Swift or I can use swift ReST APIs to work? Also, what is the benefit of emulating with S3 if we will be hosting our own private cloud based on openstack swift? please suggest

2013-08-07 04:23:06 -0500 commented answer Swift S3 error: No module named s3_token

Hi Rahmu, Thanks for the response. I have followed the command you suggested on swift proxy-server and got the below output: root@proxy:~# apt-cache search swift3 swift-plugin-s3 - swift3 middleware for swift. root@proxy:~# apt-cache policy swift-plugin-s3 swift-plugin-s3: Installed: 1.0.0~git201200618-0ubuntu1~cloud0 Candidate: 1.0.0~git201200618-0ubuntu1~cloud0 Version table: *** 1.0.0~git201200618-0ubuntu1~cloud0 0 500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/grizzly/main amd64 Packages 100 /var/lib/dpkg/status root@proxy:~# Please suggest what next - thanks

2013-08-06 13:07:23 -0500 asked a question Swift S3 error: No module named s3_token

Hi Experts,

I have managed to get the Swift installation working correctly with the Swift API's using Keystone. But I am currently having issues when starting the Proxy after adding the Swift3 setup into the Proxy config and I was hoping someone could point me in the right direction.

I am receiving the following error when restarting the proxy service using "swift-init proxy restart"

root@proxy:~# swift-init proxy restart
Signal proxy-server  pid: 1707  signal: 15
No proxy-server running
Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 22, in <module>
    run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 119, in run_wsgi
    init_request_processor(conf_file, app_section, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 246, in init_request_processor
    app = loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
    value = import_string(found_expr)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string
    return pkg_resources.EntryPoint.parse("x=" + s).load(False)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named s3_token

My current setup is as follows:

Controller(keystone): 10.0.0.151
proxy server: 10.0.0.154
Storage node: 10.0.0.155

Proxy-server.conf :
[DEFAULT]
bind_port = 8080
user = swift

[pipeline:main]
pipeline = catch_errors healthcheck cache swift3 s3token  authtoken keystoneauth proxy-server

[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true

[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = Member,admin,swiftoperator

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory

# Delaying the auth decision is required to support token-less
# usage for anonymous referrers ('.r:*').
delay_auth_decision = true

# cache directory for signing certificate
signing_dir = /home/swift/keystone-signing

# auth_* settings refer to the Keystone server
auth_protocol = http
auth_host = 10.0.0.151
auth_port = 35357

# the same admin_token as provided in keystone.conf
admin_token = ADMIN

# the service tenant and swift userid and password created in Keystone
admin_tenant_name = service
admin_user = swift
admin_password = swift

[filter:cache]
use = egg:swift#memcache
memcache_servers=10.0.0.154
[filter:catch_errors]
use = egg:swift#catch_errors

[filter:healthcheck]
use = egg:swift#healthcheck

[filter:swift3]
use = egg:swift3#swift3

[filter:s3token ...
(more)
2013-08-06 08:07:37 -0500 asked a question Swift Error - unable to retrieve container list created yesterday but able to create new containers and upload them with objects

Hi Experts,

Everything was working fine until I found this issue.

I have created few containers yesterday and also uploaded few objects into each of them. Today I tried accessing the container from dashboard and received "Unable to retrieve container list" error message. Though I can still create new container and upload new objects. I can retrieve the container list for newly created container.

I can still see the names of the yesterday created container displaying in the dashboard but when I click the container name to retrieve its list then I have the error message pop out.

I am using Ubuntu 12.04 LTS on all the servers and have the following infrastructure layout: Controller: 10.0.0.151 storage proxy node:10.0.0.154 storage node: 10.0.0.155 Network node: 10.0.0.152 compute node: 10.0.0.153

Please suggest how can I access the objects in these containers or how can I delete them along with their objects forcefully? Why this has happened?

2013-07-31 15:44:36 -0500 commented answer SWIFT Error: Unable to retrieve container list

can you please update as what steps you performed to solve this issue. thanks

2013-07-23 16:54:22 -0500 commented answer OVS plugin Error Failed to create OVS patch port

Hi IJab, if i dont want to downgrade to 3.2 Kernel then you suggested to build and install 1.10.x OVS by yourself. Can you please suggest the steps to create it or suggest where can i download and install this from so as to make this lab working. Please suggest.

2013-07-23 11:21:06 -0500 commented answer OVS plugin Error Failed to create OVS patch port

Hi James, I am building the lab following the guide on the following link: https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst I am able to create VMs and other things but VM cannot get IP address and inet4 does not show on VM instances. On checking, I found error - ERROR [quantum.plugins.openvswitch.agent.ovs_quantum_agent] Failed to create OVS patch port. Cannot have tunneling enabled on this agent, since this version of OVS does not support tunnels or patch ports. Agent terminated!. I am using Ubuntu 12.04 LTS 3.5.0-36-generic and as per the blogs they say OVS does not compiles with this kernel. You have mentioned to switch to Flat networking and as a newbie I would appreciate if you can specify what all I need to do to transition from current configuration to flat networking. thanks in advance