Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
import unittest, time
#display = Display(visible=0, size=(800, 600))
#display.start()
browser = webdriver.Firefox()
{
"rankDir" : "TB",
"template" : "",
"state_type" : "both",
"name" : "presentation uploads presentation viewing",
"nodes" : [
{
"function" : "worst()",
"create_obj" : 1,
"label" : "presentation uploads presentation viewing",
unknown attribute: aggregation in event_waiting.cfg:4
unknown attribute: duplicate_foreach in event_waiting.cfg:4
unknown attribute: aggregation in replicatset.cfg:2
unknown attribute: aggregation in templates.cfg:42
unknown object type 'discoveryrule' in discovery.cfg:2
unexpected end of object in discovery.cfg:7
expected end of object in /usr/local/shinken/etc/packs/network/fortinet/discovery.cfg:7
unknown attribute: duplicate_foreach in check_safekit_cluster_state.cfg:1
unknown object type 'discoveryrule' in discovery.cfg:2
unexpected end of object in discovery.cfg:7
define module {
modules Apache_passwd, ActiveDir_UI, Cfg_password, PNP_UI, Mongodb, Glances_UI
manage_acl 1
play_sound 0
host 0.0.0.0
module_type webui
allow_html_output 0
max_output_length 100
module_name WebUI
auth_secret CHANGE_ME
define scheduler {
data_timeout 120
check_interval 60
weight 1
skip_initial_broks 0
modules PickleRetention,PickleRetention
spare 0
timeout 3
address snode00.foo.dev
scheduler_name scheduler-Outside
└─▪ easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 9, in <module>
load_entry_point('distribute', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.6/site-packages/setuptools-1.3-py2.6.egg/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/site-packages/setuptools-1.3-py2.6.egg/pkg_resources.py", line 2393, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
==> /home/foobar/.pulp/server_calls.log <==
2013-10-10 10:44:53,188 - INFO - POST request to /pulp/api/v2/content/uploads/ with parameters None
2013-10-10 10:44:53,188 - INFO - Response status : 401
2013-10-10 10:44:53,188 - INFO - Response body :
"Permission Denied"
==> /home/foobar/.pulp/admin.log <==
2013-10-10 10:44:53,189 - ERROR - Client-side exception occurred
[root@cnode01 code]# chef-apply tdi.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* user[tdi] action create (up to date)
* template[/tmp/tdi.txt] action create
================================================================================
Error executing action `create` on resource 'template[/tmp/tdi.txt]'
================================================================================
NoMethodError
-------------
Id: rhel64_base_x86_64-daily
Display Name: rhel64_base_x86_64-daily
Description: None
Content Unit Counts:
Distribution: 1
Erratum: 1908
Package Category: 10
Package Group: 202
Rpm: 10813
Yum Repo Metadata File: 1
Vagrant.configure("2") do |config|
config.vm.define :master do |master|
master.vm.box = "centos6.4_x86_64v2"
#master.vm.network :hostonly, "33.33.33.100"
master.vm.network :private_network, ip: "33.33.33.100"
master.vm.customize ["modifyvm", :id, "--memory", 1024]
master.vm.boot_mode = :gui
end
config.vm.define :slave do |slave|