An update - I have found that the homestead service is not showing up in kube 
dns so the sprout checks on the Register request (which is getting there) is 
failing, thus the Forbidden response. So my issue seems to be related to how 
the clearwater-docker images are being deployed in k8s (all of the other 
services do show up in kube dns... just this one doesn't).

Thanks,
Bryan Sullivan | AT&T

From: SULLIVAN, BRYAN L (BRYAN L)
Sent: Friday, January 26, 2018 6:20 AM
To: Valentin Boucher <valentin.bouc...@kontron.com>; 
opnfv-tech-discuss@lists.opnfv.org
Subject: RE: Issues building clearwater-live-test

Thanks, I'll try it out. I did find in the interim a pre-built pjsua container 
(https://hub.docker.com/r/andrius/pjsua/) after also failing to build that 
client from the docs (what is it with docs?), and have been using it to attempt 
registration with the deployment. I can get the Bono pod to respond to 
registration requests but it always rejects them as "forbidden". I'm not sure 
what combination of these issues I'm facing but any advice is appreciated. It 
may be:

  *   I don't have the deployment configured correctly: I have made no 
changes/config settings for the pods - I just built the clearwater-docker 
images and deployed them in the same k8s namespace. So they should all be able 
to find each other by their default ports within the cluster. I know at least 
that part is working.
  *   Homestead and homestead-prov keep going through crashloops. So far this 
only seems to affect the user portal (sometimes Ellis can't display the 
dashboard settings for a user)
  *   I'm not using the correct values for the various fields in the register 
command... it's been 10 years since I led work in OMA on SIP/IMS PUSH... some 
complete examples that work with clearwater, mapped to the default deployment 
settings for clearwater would be *great*. Here's are a couple of examples: in 
these cases the password is the value shown (one time) by Ellis after I created 
the account. It's unclear whether I should use that in the register command, or 
the password that the user created when signing up at the portal (I assume it's 
the former, but it's not helping).



pjsua --app-log-level=4 --log-level=6 --realm=example.com 
--username=j...@example.com<mailto:--username=j...@example.com> 
--id=sip:j...@example.com --password=vgDeqmE5V --null-audio 
--registrar=sip:example.com --use-ims



pjsua --app-log-level=4 --log-level=6 --realm=default.svc.cluster.local 
--username=b...@default.svc.cluster.local<mailto:--username=b...@default.svc.cluster.local>
 --id=sip:b...@default.svc.cluster.local --password=jSv9QmERE --null-audio 
--registrar=sip:default.svc.cluster.local --use-ims

Are there docs that can help me with these questions above, somewhere? Sorry to 
ask for all this help and if you're too busy I understand. I'll keep looking 
and put whatever I find that works on the wiki.

Thanks,
Bryan Sullivan | AT&T

From: Valentin Boucher [mailto:valentin.bouc...@kontron.com]
Sent: Friday, January 26, 2018 5:41 AM
To: SULLIVAN, BRYAN L (BRYAN L) 
<bryan.sulli...@research.att.com<mailto:bryan.sulli...@research.att.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: RE:Issues building clearwater-live-test

Bryan,

The doc is not really up to date ....

I write a new docker file [1] only for clearwater-live-test base on the vnf 
functest Dockerfile.
I test it, and it's work.
So, After your docker build you can run this commands:

  *   docker run -it <image_id> sh #you can add the --dns arg if you want to 
specify the dns ip of the clearwater deployment
  *   cd /src/vims-test
  *   rake test['<your_sip_domain'>] SIGNUP_CODE='<your_secret_code>'



Valentin



[1] The docker file:



FROM alpine:3.7

ARG VIMS_TAG=stable

RUN apk --no-cache add --update \
        ruby ruby-bundler ruby-irb ruby-rdoc dnsmasq \
        procps libxslt libxml2 zlib libffi git && \
    apk --no-cache add --virtual .build-deps --update \
        ruby-dev g++ make libxslt-dev libxml2-dev zlib-dev libffi-dev && \
    git clone --depth 1 -b $VIMS_TAG 
https://github.com/boucherv-orange/clearwater-live-test<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_boucherv-2Dorange_clearwater-2Dlive-2Dtest&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=7ISkxR4ctGen7_SdupsCan6p1oRX4XC1d4twQFb489Q&s=_dfsRJ-BQn2P5FX1O0wVUZr2R2XB2Qj3smU24KFckRg&e=>
 /src/vims-test && \
    (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries 
&& bundle install --system) && \
    apk del .build-deps



________________________________
De : SULLIVAN, BRYAN L (BRYAN L) [bryan.sulli...@research.att.com]
Envoyé : jeudi 25 janvier 2018 15:55
À : Valentin Boucher; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Objet : RE: Issues building clearwater-live-test
Valentin,

Thanks for the advice. Some more notes and questions:

Your repo does not include a Dockerfile. So I created one with the instructions 
in the readme. I had to make the following updates to your instructions:

  *   Using a xenial base, start with "apt-get update" (otherwise 
build-essential etc did not install - "unable to locate package")
  *   I had to add "curl gnupg2" to the apt-get list
  *   Various other tweaks to get the instructions to run as via the dockerfile 
(e.g. as root), mostly related to getting rvm to install

However, once the container is deployed, it seems the sequence of install steps 
did not complete somehow as I get:
root@clearwater-live-test:/# rake
/usr/local/bin/rake:23:in `load': cannot load such file -- 
/usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)
        from /usr/local/bin/rake:23:in `<main>'

Also, once I get past that... it's not clear from the readme what needs to be 
done, next. Are there examples somewhere of the  IMS tests that need to be 
referenced in the rake command? Or is there a way to use the shell for 
something simpler?

Here's the dockerfile I am using. One quick question on this: is xenial OK or 
is there some other ubuntu version I need to use?

FROM ubuntu:xenial

MAINTAINER Bryan Sullivan

RUN apt-get update && apt-get install -y build-essential bundler git curl gnupg2
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
RUN curl -L 
https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer<https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubusercontent.com_rvm_rvm_master_binscripts_rvm-2Dinstaller&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=7ISkxR4ctGen7_SdupsCan6p1oRX4XC1d4twQFb489Q&s=wXjQQun5MI8WmdggUxVLIb9cij6xMyiH8wAAock_xCk&e=>
 -o ~/rvm-installer

# This is not a user-based install, use --ignore-dotfiles
RUN /bin/bash -c "source ~/rvm-installer --ignore-dotfiles stable"
RUN /bin/bash -c "source /usr/local/rvm/scripts/rvm"
# Set the path to the rvm binary
RUN /bin/bash -c "export PATH=$PATH:/usr/local/rvm/bin; rvm autolibs enable; 
rvm autolibs enable; rvm install 1.9.3; rvm use 1.9.3; ruby --version"
# should indicate that ruby 1.9.3 is in use

RUN git clone 
https://github.com/Metaswitch/clearwater-live-test.git<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Metaswitch_clearwater-2Dlive-2Dtest.git&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=7ISkxR4ctGen7_SdupsCan6p1oRX4XC1d4twQFb489Q&s=78sTmv1-quO9dZ0bDs39IwwxrzKmgygtKlrhYPk3HNA&e=>
RUN cd clearwater-live-test && bundle install


Thanks,
Bryan Sullivan | AT&T

From: 
opnfv-tech-discuss-boun...@lists.opnfv.org<mailto:opnfv-tech-discuss-boun...@lists.opnfv.org>
 [mailto:opnfv-tech-discuss-boun...@lists.opnfv.org] On Behalf Of Valentin 
Boucher
Sent: Thursday, January 25, 2018 8:47 AM
To: Bryan Sullivan <bls...@hotmail.com<mailto:bls...@hotmail.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] Issues building clearwater-live-test

Hi bryan,

In functest cloudify_ims testcase we use a fork of this clearwater live test 
repository.
By default the clearwater live test only print the results on the terminal .. 
So I update that code to have a json result file in order to put that in the 
opnfv test result api!

The build of functest docker vnf (including this test suite) work well and the 
version of quaff is 0.7.2
-> 
https://github.com/boucherv-orange/clearwater-live-test/blob/stable/Gemfile.lock#L47<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_boucherv-2Dorange_clearwater-2Dlive-2Dtest_blob_stable_Gemfile.lock-23L47&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=cViO8HdyF_jCE1xW2GiAKV0XU6352DFJtqNgJSfKm40&s=2OiW4h3NoSPdw2K1_WmxwQbPT3AxURFNWnvMvnTo_N8&e=>

Armband team, also update one dependency to support this container on arm64 
server!

Valentin
________________________________
De : 
opnfv-tech-discuss-boun...@lists.opnfv.org<mailto:opnfv-tech-discuss-boun...@lists.opnfv.org>
 [opnfv-tech-discuss-boun...@lists.opnfv.org] de la part de Bryan Sullivan 
[bls...@hotmail.com]
Envoyé : jeudi 25 janvier 2018 11:35
À : 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Objet : [opnfv-tech-discuss] Issues building clearwater-live-test
Does anyone have contacts at Metaswitch that could help with this issue? I have 
tried joining their mail list but am getting no response.

When I build the docker container as described 
(https://github.com/Metaswitch/clearwater-live-test<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Metaswitch_clearwater-2Dlive-2Dtest&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=cViO8HdyF_jCE1xW2GiAKV0XU6352DFJtqNgJSfKm40&s=38JLaSs-oZ9K7NjsPYT42BTC-sLcJnoaWxOJ2b9NJhA&e=>
 : "Simply run docker build -t clearwater/live-test . from within the 
clearwater-live-test/ directory. ") I get the following error. Same error with 
their stable branch.
Step 7/7 : RUN bundle install
 ---> Running in 81dc14cd34d7
Fetching gem metadata from 
https://rubygems.org/<https://urldefense.proofpoint.com/v2/url?u=https-3A__rubygems.org_&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=cViO8HdyF_jCE1xW2GiAKV0XU6352DFJtqNgJSfKm40&s=afHTs9xGZRPAxcOSywtkmJEAYuLd_UKOaJ4oeSz5DR4&e=>.........
Fetching 
https://github.com/bossmc/joker.git<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bossmc_joker.git&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=ML-JPRZQOfToJjMwlJLPlcWimAEwMA5DZGNIrk-cgy0&m=cViO8HdyF_jCE1xW2GiAKV0XU6352DFJtqNgJSfKm40&s=CFt2k4dfpArzDuaH75tNGMR5j2j4ivOqJasjXXbfh00&e=>
Cloning into bare repository 
'/var/lib/gems/1.9.1/cache/bundler/git/joker-62a31cfee6b11382ddb10da61fc120a882d5c721'...
Cloning into '/var/lib/gems/1.9.1/bundler/gems/joker-97ac2b5738b4'...
done.
Could not find quaff-0.7.4 in any of the sources
The command '/bin/sh -c bundle install' returned a non-zero code: 7

Thanks,
Bryan Sullivan
_______________________________________________
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to