Skip to content

Instantly share code, notes, and snippets.

View cert-iscsi.txt
========================================================
03/07/14/12:23:53:RUNNING CINDER DRIVER CERTIFICATION CHECK,
========================================================
03/07/14/12:23:53:Output is being logged to: /tmp/tmp.aDQORrP98k
========================================================
03/07/14/12:23:53:Cloning to git://git.openstack.org/openstack/cinder.git...,
========================================================
View hds-iscsi.log
ubuntu@ubuntu:/opt/stack/tempest$ cd /opt/stack/cinder && /opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-vol.pid; fg || echo "c-vol failed to start" | tee "/opt/stack/status/stack/c-vol.failure"
[1] 22014
cd /opt/stack/cinder && /opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf
2014-03-11 12:09:40.670 INFO cinder.volume.drivers.hds.iscsi [-] mgmt_ip0: 10.0.80.47
2014-03-11 12:09:40.671 INFO cinder.volume.drivers.hds.iscsi [-] username: supervisor
2014-03-11 12:09:40.671 INFO cinder.volume.drivers.hds.iscsi [-] password: supervisor
2014-03-11 12:09:40.671 INFO cinder.volume.drivers.hds.iscsi [-] hnas_cmd: None
2014-03-11 12:09:40.671 INFO cinder.volume.drivers.hds.iscsi [-] chap_enabled: True
2014-03-11 12:09:40.671 INFO cinder.volume.drivers.hds.iscsi [-] svc_0:
View cert-iscsi.txt
========================================================
03/11/14/15:21:42:RUNNING CINDER DRIVER CERTIFICATION CHECK,
========================================================
03/11/14/15:21:42:Output is being logged to: /tmp/tmp.6Z0yCblLW1
========================================================
03/11/14/15:21:42:Cloning to git://git.openstack.org/openstack/cinder.git...,
========================================================
View gist:426dad85eb390c9b6082
add_filter( 'fu_is_debug', '__return_true' );
add_action( 'fu_after_upload', 'my_fu_after_upload', 10, 3 );
function my_fu_after_upload( $attachment_ids, $success, $post_id ) {
// do something with freshly uploaded files
// This happens on POST request, so $_POST will also be available for you
$dest_folder = "/exports/data/".$post_id;
echo "FUNCTION AFTER UPLOAD: " . "<br>attachment_ids=";
print_r($attachment_ids);
View gist:c3bea65068e4c1b3b039
FUNCTION AFTER UPLOAD:
attachment_ids=Array ( [0] => 121 )
result=1
post_id=32Array ( [post_ID] => 32 [post_title] => Erlon Cruz [ra] => 123456 [action] => upload_ugc [form_layout] => image [fu_nonce] => d71734168a [_wp_http_referer] => /?p=32 [ff] => f3c01b8520a3bdaf1f0141dd2b20f488 [form_post_id] => 32 ) Post name = Trabalho 1 - (ICA)
Upload dir
Array ( [path] => /var/www/wordpress/wp-content/uploads/2014/07 [url] => http://www.erloncruz.com.br/wp-content/uploads/2014/07 [subdir] => /2014/07 [basedir] => /var/www/wordpress/wp-content/uploads [baseurl] => http://www.erloncruz.com.br/wp-content/uploads [error] => ) Getting attacments to atta 121
Array ( [width] => 940 [height] => 168 [file] => 2014/07/banner1.png [sizes] => Array ( [thumbnail] => Array ( [file] => banner1-150x150.png [width] => 150 [height] => 150 [mime-type] => image/png ) [medium] => Array ( [file] => banner1-300x53.png [width] => 300 [height] => 53 [mime-type] => image/png ) ) [image_meta] => Array ( [aperture] => 0 [credit] => [camera]
View gist:bfdd531bbfa97e34f28d
FUNCTION AFTER UPLOAD:
attachment_ids=Array ( [0] => 122 )
result=1
post_id=32Array ( [post_ID] => 32 [post_title] => Erlon Cruz [ra] => 123456 [action] => upload_ugc [form_layout] => image [fu_nonce] => d71734168a [_wp_http_referer] => /?p=32 [ff] => f3c01b8520a3bdaf1f0141dd2b20f488 [form_post_id] => 32 ) Post name = Trabalho 1 - (ICA)
Upload dir
Array ( [path] => /var/www/wordpress/wp-content/uploads/2014/07 [url] => http://www.erloncruz.com.br/wp-content/uploads/2014/07 [subdir] => /2014/07 [basedir] => /var/www/wordpress/wp-content/uploads [baseurl] => http://www.erloncruz.com.br/wp-content/uploads [error] => ) Getting attacments to atta 122
Warning: Illegal string offset 'file' in /var/www/wordpress/wp-content/plugins/frontend-uploader/lib/php/functions.php on line 285
View gist:84841e0405ad326d62b1
params': None})] from (pid=10856) update_instance_cache_with_nw_info /opt/stack/nova/nova/network/base_api.py:39
2014-08-05 09:44:52.770 ERROR oslo.messaging.rpc.dispatcher [req-9613206f-f564-48be-b0c3-f657d866dd78 admin admin] Exception during message handling: Live migration of
instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes.
2014-08-05 09:44:52.770 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-08-05 09:44:52.770 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_an
d_reply
2014-08-05 09:44:52.770 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-08-05 09:44:52.770 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-08-05 09:44:52.770 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(e
View gist:e824a4e1a65df262bae9
Traceback (most recent call last):
File "/home/erlon/internal_git/openstack/cinder/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/erlon-home/internal_git/openstack/cinder/cinder/tests/zonemanager/test_volume_driver.py", line 77, in test_terminate_connection_with_decorator
conn_info = self.driver.terminate_connection(None, None)
File "/home/erlon-home/internal_git/openstack/cinder/cinder/zonemanager/utils.py", line 112, in decorator
zm = create_zone_manager()
File "/home/erlon-home/internal_git/openstack/cinder/cinder/zonemanager/utils.py", line 39, in create_zone_manager
zm = fc_zone_manager.ZoneManager(configuration=config)
File "/home/erlon-home/internal_git/openstack/cinder/cinder/zonemanager/fc_zone_manager.py", line 93, in __init__
@sombrafam
sombrafam / .run_tests.sh
Created Feb 2, 2015
./run_tests.sh -concurrency 4
View .run_tests.sh
======================================================================
FAIL: cinder.tests.test_emc_vnxdirect.EMCVNXCLIDriverISCSITestCase.test_create_volume_from_snapshot_sync_failed
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/home/erlon-home/internal_git/openstack/cinder/cinder/tests/test_emc_vnxdirect.py", line 1380, in test_create_volume_from_snapshot_sync_failed
fake_cli.assert_has_calls(expect_cmd)
File "/home/erlon/internal_git/openstack/cinder/.venv/local/lib/python2.7/site-packages/mock.py", line 863, in assert_has_calls
'Actual: %r' % (calls, self.mock_calls)
AssertionError: Calls not found.
View Raid-manager
RAID-Manager/Linux/x64 Ver&Rev: 01-33-03/07
+++++++++++++++++++++++++++++++++++++++++++
utils.execute(*tuple("raidcom get dp_pool".split(" ")))
('PID POLS U(%) AV_CAP(MB) TP_CAP(MB) W(%) H(%) Num LDEV# LCNT TL_CAP(MB) BM TR_CAP(MB) RCNT\n000 POLN 54 2628654 5767860 70 80 2 0 121 10251887 - - -\n001 POLN 0 2469558 2469558 70 80 1 16 0 0 - - -\n', '')
utils.execute(*tuple("raidcom get pool -key opt".split(" ")))
('PID POLS U(%) POOL_NAME Seq# Num LDEV# H(%) VCAP(%) TYPE PM\n000 POLN 54 pool1 211826 2 0 80 - OPEN N \n001 POLN 0 pfit 211826 1 16 80 - OPEN N \n', '')
Model : RAID-Manager/Linux/x64 Ver&Rev: 01-30-03/03
++++++++++++++++++++++++++++++++++++++++++++++++++++