A quick and dirty way to create a host for development purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd foreman-installer, rake pkg:generate_source, grep -r <thing> _build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Spin up centos8 box | |
sudo yum install -y epel-release | |
yum install -y --nogpgcheck python3 git chromedriver chromium | |
git clone https://github.com/theforeman/smoker | |
cd smoker | |
pip3 install -r requirements.txt | |
add box to /etc/hosts | |
pytest --driver Chrome --base-url https://centos7-katello-nightly.jomitsch.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Context: https://bugzilla.redhat.com/show_bug.cgi?id=1613391 | |
# Update activerecord-5.2.1/lib/active_record/associations/has_many_association.rb on line 105 to log which association is causing issues | |
def delete_records(records, method) | |
if method == :destroy | |
begin | |
records.each(&:destroy!) | |
rescue => e | |
logger = Logger.new('/tmp/rails.log') | |
logger.info(self.owner) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant cloud publish katello/katello-devel $(date '+%Y.%m%d.%H%M') libvirt centos7-katello-devel-stable.box -d "A stable katello devel environment created with packer" --version-description "nightly publish" --release --short-description "stable katello devel box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This will send concurrent hammer requests from a centos7-hammer-devel box. Update the commands below to alter the request | |
require 'net/http' | |
hammer="BUNDLE_GEMFILE=~/hammer-cli-foreman/Gemfile bundle exec hammer" | |
# create base command | |
base_command = "repository info " |
Cloned Satellite 6.6 seeing this error on any bastion page:
Error: [$injector:modulerr] Failed to instantiate module Bastion.content-views.versions due to:
Error: [$injector:modulerr] Failed to instantiate module Bastion.errata due to:
Error: [$injector:modulerr] Failed to instantiate module Bastion.dates due to:
Error: [$injector:modulerr] Failed to instantiate module react due to:
Error: [$injector:nomod] Module 'react' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.5/$injector/nomod?p0=react
- Typing www.wikipedia.com in the browser
- We need DNS server for domain to ip address mapping
- Before that, we can use DHCP (which does a number of things). DHCP can ask the ISP provider for a DNS server to use
- DHCP
- can also provide Static IP address
With dynflow actions, the disable repository tasks are run concurrently, and there are race conditions. I used the following to debug:
diff --git a/app/lib/actions/candlepin/environment/set_content.rb b/app/lib/actions/candlepin/environment/set_content.rb
index e78fcd7..87659ba 100644
--- a/app/lib/actions/candlepin/environment/set_content.rb
+++ b/app/lib/actions/candlepin/environment/set_content.rb
@@ -12,7 +12,9 @@ module Actions
def finalize
content_view = ::Katello::ContentView.find(input[:content_view_id])
Seeing dynflow/foreman-task errors and strange behavior on the dev box. Using this gist to collect the errrors. Not sure what is related, but documenting everything here.
Odd Behaviors:
- Tasks stuck in "planning" state
Tracebacks
- Seeing this one on a fresh box while enabling and disabling RH repos
2019-09-04T18:01:58 [E|dyn|f45e65f7] invalid state transition pending >> planned in # (RuntimeError)