Skip to content

Instantly share code, notes, and snippets.

View jmelis's full-sized avatar

Jaime Melis jmelis

View GitHub Profile
{
"DOCUMENT": {
"NAME": "my_service",
"TEMPLATE": {
"BODY": {
"description": "",
"custom_attrs": {
"INTERNAL_NET": "M|vnet_id|Private Network",
"PUBLIC_NET": "M|vnet_id|Public Network"
},
127.0.0.1 - - [22/Jan/2014 13:23:53] "GET /worker/imtheworker/job?status=cancelling HTTP/1.1" 200 4 0.0920
NoMethodError - undefined method `cancel' for nil:NilClass:
/usr/lib/one/ruby/oneapps/market/models/app_collection/app.rb:239:in `block in delete'
/usr/lib/one/ruby/oneapps/market/models/collection.rb:87:in `call'
/usr/lib/one/ruby/oneapps/market/models/collection.rb:87:in `block in each'
/usr/lib/one/ruby/oneapps/market/models/collection.rb:86:in `each'
/usr/lib/one/ruby/oneapps/market/models/collection.rb:86:in `each'
/usr/lib/one/ruby/oneapps/market/models/app_collection/app.rb:238:in `delete'
/usr/lib/one/ruby/oneapps/market/controllers/appmarket-server.rb:420:in `block in <main>'
/usr/lib/ruby/gems/2.0.0/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
.
├── administration
│   ├── authentication
│   ├── hosts_and_clusters
│   ├── monitoring
│   ├── networking
│   ├── other_subsystems
│   ├── references
│   ├── storage
│   ├── sunstone_gui
diff --git a/src/datastore_mad/remotes/fs/mkfs b/src/datastore_mad/remotes/fs/mkfs
index afdd851..7f7842f 100755
--- a/src/datastore_mad/remotes/fs/mkfs
+++ b/src/datastore_mad/remotes/fs/mkfs
@@ -49,7 +49,8 @@ done < <($XPATH /DS_DRIVER_ACTION_DATA/DATASTORE/BASE_PATH \
/DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/RESTRICTED_DIRS \
/DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/SAFE_DIRS \
/DS_DRIVER_ACTION_DATA/IMAGE/FSTYPE \
- /DS_DRIVER_ACTION_DATA/IMAGE/SIZE)
+ /DS_DRIVER_ACTION_DATA/IMAGE/SIZE \
<VM>
<ID>3</ID>
<UID>0</UID>
<GID>0</GID>
<UNAME>oneadmin</UNAME>
<GNAME>oneadmin</GNAME>
<NAME>tty-3</NAME>
<PERMISSIONS>
<OWNER_U>1</OWNER_U>
<OWNER_M>1</OWNER_M>
<VMM_DRIVER_ACTION_DATA>
<HOST>localhost</HOST>
<NET_DRV>ovswitch</NET_DRV>
<MIGR_HOST/>
<MIGR_NET_DRV/>
<DEPLOY_ID>one-1</DEPLOY_ID>
<LOCAL_DEPLOYMENT_FILE/>
<REMOTE_DEPLOYMENT_FILE/>
<CHECKPOINT_FILE/>
<TM_COMMAND/>
# cat m05
default menu.c32
prompt 0
timeout 10
ONTIMEOUT build
MENU TITLE PXE Menu
LABEL build MENU LABEL build kernel images/centos/6.4-64/vmlinuz append initrd=images/centos/6.4-64/initrd.img vnc vncpassword=ZYX12345 headless ip=85.13.226.41 netmask=255.255.255.240 gateway=85.13.226.33 dns=8.8.8.8 hostname=m05 ksdevice=08:9e:01:70:fa:6d method=http://mirrors.karan.org/centos/6/os/x86_64 keymap=uk lang=en_GB console=ttyS1,115200n8
#!/usr/bin/env ruby
require 'fileutils'
# safety check
me = `whoami`.strip
hostname = `hostname`.strip
if me != "oneadmin" or hostname != "dyn14"
@jmelis
jmelis / nouveau2nvidia.sh
Created May 20, 2013 21:12
Switch between nvidia and nouveau drivers
#!/bin/bash
# nouveau -> nvidia
set -e
# check if root
if [[ $EUID -ne 0 ]]; then
echo "You must be root to run this script. Aborting...";
exit 1;
fi
#!/bin/bash
# -------------------------------------------------------------------------- #
# Copyright 2002-2013, OpenNebula Project Leads (OpenNebula.org) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #