Skip to content

Instantly share code, notes, and snippets.

View dav1x's full-sized avatar

Davis Phillips dav1x

  • Red Hat
  • Austin, TX
View GitHub Profile
{
"resourcepool": {
"_moId": "pool8",
"name": "OCP3"
},
"alarmactionsenabled": null,
"configissue": [],
"tag": [],
"datastore": [
{
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: panic: reflect.Set: value of type mo.ResourcePool is not assignable to type mo.ComputeResource
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: goroutine 1 [running]:
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: panic(0x3933f00, 0xc421866cd0)
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: /usr/lib/golang/src/runtime/panic.go:500 +0x1a1 fp=0xc4218e0c40 sp=0xc4218e0bb0
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: reflect.Value.assignTo(0x40818a0, 0xc420a0d8c0, 0x99, 0x421cb04, 0xb, 0x40813a0, 0x0, 0x0, 0x40818a0, 0xc420a0d8c0)
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: /usr/lib/golang/src/reflect/value.go:2163 +0x35c fp=0xc4218e0ce8 sp=0xc4218e0c40
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: reflect.Value.Set(0x40813a0, 0xc42044e000, 0x199, 0x40818a0, 0xc420a0d8c0, 0x99)
Feb 22 16:23:42 master-0 atomic-openshift-master[108409]: /usr/lib/golang/src/reflect/value.go:1333 +0xa4 fp=0x
{
"ociVersion": "1.0.0",
"platform": {
"os": "linux",
"arch": "amd64"
},
"process": {
"terminal": false,
"user": {},
"args": [
def state_add_folder(self):
changed = True
result = None
self.dc_obj = find_datacenter_by_name(self.content, self.datacenter)
self.cluster_obj = find_cluster_by_name_datacenter(self.dc_obj, self.cluster)
self.folder_expanded = self.folder.split("/")
index = 0
for f in self.folder_expanded:
if not self.get_obj([vim.Folder],f):
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Davis Phillips [email protected]
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
-bash-4.2# atomic images list
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE TYPE
flannel latest 260ccd07ad57 2017-03-08 10:18 254.1 MB docker
helloworld latest 858b0eccee2a 2017-03-08 10:02 242.12 MB docker
* <none> <none> 1642ca2ba21e 2017-03-08 09:53 242.12 MB docker
* <none> <none> 78e8e0a565da 2017-03-01 12:18 495.61 MB docker
* <none> <none> b7d1f714126e 2017-02-28 10:27 495.61 MB docker
docker.io/fedora latest 1f8ec1108a3f 2017-02-16 14:37 230.34 MB docker
openvmtools
[root@atomic-00 ~]# atomic pull --storage ostree brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:1.0-3
[root@atomic-00 ~]# atomic install --system brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:1.0-3
[root@atomic-00 ~]# systemctl start open-vm-tools-1.0-3.service
[root@atomic-00 ~]# atomic containers list
CONTAINER ID IMAGE COMMAND CREATED STATE BACKEND RUNTIME
open-vm-tool brew-pulp-docker01.w /usr/bin/vmtoolsd 2017-03-31 15:43 running ostree runc
> "NAME=$NAME",
20,216c20,58
< "capabilities": {
< "bounding": [
< "CAP_CHOWN",
< "CAP_FOWNER",
< "CAP_FSETID",
< "CAP_KILL",
< "CAP_SETGID",
< "CAP_SETUID",
def create_inventory_file(self):
total_nodes=int(self.master_nodes)+int(self.app_nodes)+int(self.infra_nodes)+int(self.support_nodes)+int(self.args.node_number)
nodes_remove=int(self.master_nodes)+int(self.app_nodes)+int(self.infra_nodes)+int(self.support_nodes)
ip4addr = []
for i in range(total_nodes):
p = iptools.ipv4.ip2long(self.vm_ipaddr_start) + i
ip4addr.append(iptools.ipv4.long2ip(p))
#!/usr/bin/env python
# vim: sw=4 ts=4 et
import argparse
import atexit
import datetime
import getpass
import iptools
import jinja2
import os