Code Monkey home page Code Monkey logo

content-host-d's Introduction

About

class SoftwareQualityEngineer:
    """We write software that tests other software"""

    def __init__(self):
        self.name = "Jake Callahan"
        self.position = "Technical Lead"
        self.team = "Satellite QE"
        self.company = "Red Hat"
        self.title_modifier = "Principal"

    def __repr__(self):
        return " - ".join((self.name, self.position, self.team, self.company))

    @property
    def social(self):
        """Contact me easily here:"""
        return {
            "Twitter": "https://twitter.com/JakeJCallahan",
            "YouTube": "https://youtube.com/c/JakeCallahan",
        }

GitHub Jake YouTube Channel Subscribers YouTube Channel Views Twitter Follow

GitHub Stats

Jake's GitHub Stats

content-host-d's People

Contributors

jacobcallahan avatar jturel avatar jyejare avatar parthaa avatar patilsuraj767 avatar ptoscano avatar rplevka avatar sthirugn avatar swadeley avatar tstrych avatar waldirio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

content-host-d's Issues

Error running the latest flood.py script

with latest master, I get an error running this command:

# python flood.py      --image ch-d      --satellite satellite.lab.example.com      --name sharad     --key rhel7ak      --count 2      --exit-criteria register
Starting content host creation with criteria reg.
Created: 1
Created: 2

The above command was running forever. While looking at at the logs for one of the docker hosts, I see:

Retrieving http://satellite.lab.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                          ########################################
Updating / installing...
Activation key rhel7ak specified. Registering...
Validation failed: Host has already been taken
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>
Tailing rhsm log.
2018-03-08 21:58:21,577 [INFO] yum:86:MainThread @connection.py:821 - Connection built: host=vms1.mmx.gss.redhat.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2018-03-08 21:58:21,578 [INFO] yum:86:MainThread @repolib.py:326 - repos updated: Repo updates
Total repo updates: 0
Updated
    <NONE>
Added (new)
    <NONE>
Deleted
    <NONE>

I am pretty sure that satellite didnt have duplicate host with this name.

Help output for hypervisors and guests options unclear

Hello

" --hypervisors HYPERVISORS
The number of hypervisors to create. This is only to
be used with the 'guest' tag"

Should that be: "with the 'guests' tag"?

"--guests GUESTS The number of guests per hypervisor to create. This is
only to be used with the 'guest' tag"

Should that be: "with the 'hypervisors' tag"?

Thank you

flood.py is not storing rhsm.log

python /content-host-d/flood.py --satellite satellite.test.com --name test1 --key rhel7_ak  --organization ACME --count 100 --exit-criteria register  --rhsm-log-dir logs

After running the above command, flood.py correctly stored the logs.

but logs/ subfolder had created empty log files for container hosts. When I see journald journalctl --since "2018-03-16 14:38:45" | grep docker:

Mar 16 15:38:14 container.host.test.com dockerd-current[13955]: tail: cannot open '/var/log/rhsm/rhsm.log' for reading: Permission denied

goferd not found

Hi @JacobCallahan do you know what is the source of this error?

Thanks.

$ docker run -h another_docker -d -e "SATHOST=sat.com" -e "AK=BZ5125" jacobcallahan/content-host-d:latest


$ docker logs <container_name>

Adding satellite certificate sat.com/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving sat.com/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                          ########################################
Updating / installing...
katello-ca-consumer-sat.com.########################################
Activation key BZ5125 found. Registering...
Validation failed: Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123
This system is not yet registered. Try 'subscription-manager register --help' for more information.
Loaded plugins: fastestmirror, ovl, product-id, search-disabled-repos,
              : subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Existing lock /var/run/yum.pid: another copy is running as pid 55.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (332 MB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:20 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (332 MB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:22 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (332 MB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:24 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (332 MB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:26 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (1.4 GB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:28 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (1.3 GB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:30 ago
    State  : Sleeping, pid: 55
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (1.3 GB VSZ)
    Started: Mon Oct 30 21:38:50 2017 - 00:33 ago
    State  : Uninterruptible, pid: 55
Cleaning repos: base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror, ovl, product-id, search-disabled-repos,
              : subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.
Determining fastest mirrors
 * base: linorg.usp.br
 * extras: linorg.usp.br
 * updates: ftp.unicamp.br
repo id                             repo name                             status
base/7/x86_64                       CentOS-7 - Base                       9591
extras/7/x86_64                     CentOS-7 - Extras                      280
updates/7/x86_64                    CentOS-7 - Updates                    1052
repolist: 10923
Loaded plugins: fastestmirror, ovl, product-id, search-disabled-repos,
              : subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
 * base: linorg.usp.br
 * extras: linorg.usp.br
 * updates: ftp.unicamp.br
No package katello-agent available.
Error: Nothing to do
Preparing host for remote execution
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   436  100   436    0     0    145      0  0:00:03  0:00:02  0:00:01   145
Starting goferd in foreground.
/tmp/startup.sh: line 51: goferd: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.