Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

[WIP] Scope demo in OpenShift #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alban
Copy link
Member

@alban alban commented Dec 29, 2016

Those are my notes so far. Lots of small workarounds.

/cc @alepuccetti @iaguis @nhlfr @schu

Copy link

@nhlfr nhlfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alepuccetti
Copy link
Contributor

LGTM too. I am doing some testing today

Copy link
Contributor

@alepuccetti alepuccetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a typo

Now you can start the VM:

```
vagrant up --provider=virtualbpx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/virtualbpx/virtualbox/g

@alepuccetti
Copy link
Contributor

I tried the demo, but I encountered some issues:

  1. Got some connection error during the first run of vagrant up, but the set up terminates fine with the message about how to connect to opneshift. However the command oc login https://10.2.2.2:8443 fails with this error message error: dial tcp 10.2.2.2:8443: getsockopt: connection refused. Complete set up log.
  2. sudo modprobe sch_netem fails with message: modprobe: FATAL: Module sch_netem not found in directory /lib/modules/4.8.6-300.fc25.x86_64.
  3. sudo dnf install kernel-debug-modules-extra kernel-devel succeeds but generate this message: Failed to set locale, defaulting to C.

There is no oc process running.


Make sure the `Vagrantfile` has the following changes:
- Fedora 25
- 8GB mempory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: *memory

@alban
Copy link
Member Author

alban commented Jan 6, 2017

@alepuccetti

  1. was it on Linux or on mac?
  2. did you install "kernel-debug-modules-extra kernel-devel" and reboot afterwards? If so, is sch_netem available somewhere else in /lib/modules, and what's your kernel version?
  3. that message is not important.


Install additional packages:
```
dnf install kernel-debug-modules-extra kernel-devel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, I have to install also kernel-modules-extra to be able to load sch_netem so we should add it to the command.

Now you are working on the project __weavescope__, before you can deploy the services you need to set the policy as shown below.
```
oc adm policy add-scc-to-user privileged system:serviceaccount:weavescope:default
oadm policy add-cluster-role-to-user cluster-admin system:serviceaccount:weavescope:default
Copy link
Contributor

@alepuccetti alepuccetti Jan 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 commands fail, to succeed I have to run oc login -u system:admin source: openshift/origin#4592 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants