From kraemer at avarteq.de Tue Nov 1 11:13:56 2011 From: kraemer at avarteq.de (Heiko =?ISO-8859-1?Q?Kr=E4mer?=) Date: Tue, 01 Nov 2011 12:13:56 +0100 Subject: [Openstack-operators] [Swift][Keystone] Ressource not found Message-ID: <1320146039.1896.18.camel@warchild> Heyho Guys, i've a problem with swift and keystone. I added a new user in keystone with role and all this stuff. This works and i can login in my dashboard. If i try now to get the containers from swift, then I get this error below. Nov 1 10:14:27 test1-os swift Keystone middleware called Nov 1 10:14:27 test1-os swift token: c9022cd4-xxxxx-xxxxxx-xxxxx-d58397f54080 Nov 1 10:14:27 test1-os swift Asking keystone to validate token Nov 1 10:14:27 test1-os swift headers: {'Content-type': 'application/json', 'Accept': 'text/json', 'X-Auth-Token': '1111111111111111'} Nov 1 10:14:27 test1-os swift url: ParseResult(scheme='http', netloc='localhost:5001', path='/v2.0/', params='', query='', fragment='') Nov 1 10:14:27 test1-os swift request authenticated: {'roles': [u'3', u'3'], 'user': u'test', 'tenant': u'3'} Nov 1 10:14:27 test1-os swift calling app: // {'SCRIPT_NAME': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/v1/AUTH_3/', 'SERVER_PROTOCOL': 'HTTP/1.0', 'QUERY_STRING': 'format=json', 'swift.authorize': >, 'CONTENT_LENGTH': '0', 'HTTP_X_AUTH_TOKEN': 'c9022cd4-xxxxx-xxxxxx-xxxxx-d58397f54080', 'HTTP_USER_AGENT': 'python-cloudfiles/1.7.9.1', 'eventlet.posthooks': [], 'SERVER_NAME': '192.168.0.2', 'REMOTE_ADDR': '192.168.0.2', 'eventlet.input': , 'wsgi.url_scheme': 'http', 'keystone.identity': {'roles': [u'3', u'3'], 'user': u'test', 'tenant': u'3'}, 'SERVER_PORT': '8080', 'wsgi.input': , 'HTTP_HOST': '192.168.0.2:8080', 'swift.cache': , 'wsgi.multithread': True, 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': , 'wsgi.multiprocess': False, 'CONTENT_TYPE': None, 'swift.clean_acl': , 'HTTP_ACCEPT_ENCODING': 'identity'} Nov 1 10:14:27 test1-os swift keystone middleware authorization begin (txn: txc4288a66373348d0805b72d6b0b3b976) (client_ip: 192.168.0.2) Nov 1 10:14:27 test1-os swift AUTHORIZED OKAY (txn: txc4288a66373348d0805b72d6b0b3b976) (client_ip: 192.168.0.2) Nov 1 10:14:27 test1-os account-server 192.168.0.2 - - [01/Nov/2011:09:14:27 +0000] "GET /sda6/244982/AUTH_3" 404 - "txc4288a66373348d0805b72d6b0b3b976" "-" "python-cloudfiles/1.7.9.1" 0.0003 "" Nov 1 10:14:27 test1-os swift return from app: ['404 Not Found\n\nThe resource could not be found.\n\n '] (txn: txc4288a66373348d0805b72d6b0b3b976) (client_ip: 192.168.0.2) Nov 1 10:14:27 test1-os swift 192.168.0.2 192.168.0.2 01/Nov/2011/09/14/27 GET /v1/AUTH_3/%3Fformat%3Djson HTTP/1.0 404 - python-cloudfiles/1.7.9.1 c9022cd4-xxxxx-xxxxxx-xxxxx-d58397f54080 - - - txc4288a66373348d0805b72d6b0b3b976 - 0.0061 The mountpoint in /srv/node/sda6 exists with the correct rights. But this folder doesn't exists. So i try with the curl or Swift commands directly on the server to login and get this informations. The result: > GET /auth/v1.0 HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 > Host: 192.168.0.2:8080 > Accept: */* > X-Auth-Tokenr: c9022cd4-xxxxx-xxxxxx-xxxxx-d58397f54080 > < HTTP/1.1 401 Unauthorized < Content-Length: 358 < Content-Type: text/html; charset=UTF-8 < Date: Tue, 01 Nov 2011 10:33:34 GMT < 401 Unauthorized

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

* Connection #0 to host 192.168.0.2 left intact * Closing connection #0 In the Log: Nov 1 12:05:45 test1-os swift keystone middleware authorization begin (txn: tx0df22eb538f040da87f6b8fbfca505df) (client_ip: 192.168.0.2) Nov 1 12:05:45 test1-os swift tenant mismatch: u'3' (txn: tx0df22eb538f040da87f6b8fbfca505df) (client_ip: 192.168.0.2) Nov 1 12:05:45 test1-os swift return from app: ['\n \n 401 Unauthorized\n \n \n

401 Unauthorized

\n This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

\n\n\n\n \n'] (txn: tx0df22eb538f040da87f6b8fbfca505df) (client_ip: 192.168.0.2) My config (only the important options): Swift-Proxy-Server(swift) [pipeline:main] pipeline = healthcheck cache keystone proxy-server [filter:keystone] use = egg:keystone#swiftauth keystone_admin_token = 1111111111111111 keystone_url = http://localhost:5001/v2.0/ In the Keystone config i changed only bind-address and keystone runs on all NIC's. I hope for any idea :) Greetings Heiko -- Heiko Kr?mer CIO / Administrator Avarteq GmbH Geb?ude A1.2 - Universit?t des Saarlandes - 66123 Saarbr?cken - Germany Ph/Fax: +49-700-RAILSHOSTER Ph/Fax: +49-700-72 45 74 67 Web: www.avarteq.de Gesch?ftsf?hrer: Alexander Fai?t, Dipl.-Inf.(FH) Julian Fischer Handelsregister: AG Saarbr?cken HRB 17413, Ust-IdNr.: DE262633168 Sitz: Saarbr?cken -------------- next part -------------- An HTML attachment was scrubbed... URL: From jm9991 at att.com Tue Nov 1 23:10:23 2011 From: jm9991 at att.com (MARTIN, JASON) Date: Tue, 1 Nov 2011 23:10:23 +0000 Subject: [Openstack-operators] OpenStack + QEMU, no nics defined. In-Reply-To: <4EA862EC.5070201@indiana.edu> References: <4EA85B6B.5050201@indiana.edu> <4EA85E8D.5010205@indiana.edu> <4EA862EC.5070201@indiana.edu> Message-ID: <7780A266FA69DA41ACBBE38CF16A816422B8A1@WABOTH9MSGUSR8C.ITServices.sbc.com> Hello, I am attempting to run OpenStack+QEMU. It is running ttylinux. Inside the instance it is not detecting a network device (ifconfig -a shows nothing, dmesg shows nothing detected), and I don't see any -net or -netdev definitions in the qemu command. The generated QEMU command line is: /usr/bin/qemu -S -M pc-0.14 -no-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-0000000e -uuid 2663a0e0-baa3-31a5-1be1-c1e000c2c8de -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000000e.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -kernel /var/lib/nova/instances/instance-0000000e/kernel -initrd /var/lib/nova/instances/instance-0000000e/ramdisk -append root=/dev/vda console=ttyS0 -drive file=/var/lib/nova/instances/instance-0000000e/disk,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0 -chardev pipe,id=charserial0,path=/var/lib/nova/instances/instance-0000000e/console.fifo -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb -vnc 0.0.0.0:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 I see in /usr/share/pyshared/nova/virt/libvirt.xml.template " #for $nic in $nics #if $vif_type == 'ethernet'