syndesisio / fuse-online-install Goto Github PK
View Code? Open in Web Editor NEWInstallation templates and other objects for installing Red Hat Fuse Online (based on Syndesis)
License: Apache License 2.0
Installation templates and other objects for installing Red Hat Fuse Online (based on Syndesis)
License: Apache License 2.0
Command bash install_ocp.sh --setup --camel-k
fails on fedora due to permissions issue.
Workaround:
Add :z
to docker run command which tries to copy kamel:
docker run -v $tmp_dir/:/client:z \
--entrypoint bash \
$REGISTRY/$REPOSITORY/fuse-camel-k:$CAMEL_K_TAG\
-c "tar xf /opt/clients/camel-k-client-$os.tar.gz; cp kamel /client/" >$ERROR_FILE 2>&1
Why is it that the tags in image streams [1] don't correspond to the actual image versions used in [2] and [3] ?
[1] https://github.com/syndesisio/fuse-online-install/blob/master/resources/fuse-online-image-streams.yml#L88
[2] https://github.com/syndesisio/fuse-online-install/blob/master/resources/fuse-online-image-streams.yml#L85
[3] https://github.com/syndesisio/fuse-online-install/blob/master/import_images.pl#L74
See also [4] which references hard coded tags as well.
[4] https://github.com/syndesisio/syndesis/blob/master/install/generator/syndesis-template.go#L115
The installation following the "Procedure for installing or upgrading Fuse Online on OCP" [1] installs old versions (7.1.0 GA) instead of updated images including CVE updates.
Using branch 1.4.8, and the official Fuse Online install docs at
The install_ocp script does:
oc version | grep oc | tr -d oc\ v | cut -f1 -d "+"
to do some version checking.
This renders the output:
3.10.45
Sererhttps://skylake.demlab.lal:8443
From the basic output:
oc v3.10.45
kubernetes v1.10.0+b81c8f8
features: Basic-Auth
Server https://skylake.demolab.local:8443
openshift v3.10.14
kubernetes v1.10.0+b81c8f8
The install script then tries to use this output to do min/test versioning, which results in an execution failure, and the error message:
Testing oc version '3.10.45' against required minimum 'Sererhttps://skylake.demlab.lal:8443' ... ERROR: oc version (3.10.45) should be at least Sererhttps://skylake.demlab.lal:8443
Which is just all kinds of wrong :)
oc login -u admin -p admin <cluster>
./install_ocp.sh --setup
Installing Syndesis CRD
./install_ocp.sh --grant developer --cluster
Grant permission to create Syndesis to user developer
oc login -u developer -p developer <cluster>
./install_ocp.sh
pull secret 'syndesis-pull-secret' is missing, creating ...
enter username for registry.redhat.io and press [ENTER]:
[email protected]
enter password for registry.redhat.io and press [ENTER]:
Ensuring imagestreams in syndesis
Deploying Syndesis operator
ERROR: Cannot create remote resource ./resources/fuse-online-operator.yml
The underlying error is:
oc create -f resources/fuse-online-operator.yml
Error from server (Forbidden): error when creating "resources/fuse-online-operator.yml": roles.rbac.authorization.k8s.io "syndesis-operator" is forbidden: user "developer" (groups=["system:authenticated:oauth" "system:authenticated"]) is attempting to grant RBAC permissions not currently held:
{APIGroups:["extensions"], Resources:["deployments/rollback"], Verbs:["get" "list" "watch"]}
Error from server (NotFound): error when creating "resources/fuse-online-operator.yml": roles.rbac.authorization.k8s.io "syndesis-operator" not found
currently the update_ocp.sh just updates the image streams:
fuse-online-install/update_ocp.sh
Lines 433 to 461 in 7f84829
however there are necessary changes to roles and deployment config of the operator (summary here: https://github.com/syndesisio/fuse-online-install/pull/84/files) + there is new image stream for postgres exporter (https://github.com/syndesisio/fuse-online-install/pull/88/files) that isn't taken into the account during the upgrade
Currently after the upgrade, the operator doesn't start:
syndesis-db-1-dbpvl 1/1 Running 0 31m
syndesis-meta-1-6hl7c 1/1 Running 0 31m
syndesis-oauthproxy-1-vp4dc 1/1 Running 0 31m
syndesis-operator-2-vh578 0/1 CrashLoopBackOff 9 24m
syndesis-prometheus-1-td8md 1/1 Running 0 31m
syndesis-server-1-j8dnz 1/1 Running 0 31m
syndesis-ui-1-nr45k 1/1 Running 0 31m
todo-1-7lvwj 1/1 Running 0 29m
todo-1-build 0/1 Completed 0 31m
update_ocp.sh checks if the syndesis-pull-secret should be created, but the check is checking if the tag is equal to 1.6.x
, it should rather check if the tag starts with 1.6
fuse-online-install/update_ocp.sh
Line 443 in 7f84829
Just noticed, that the import_images.pl script still contains the docker.io/openshift/oauth-proxy:v1.1.0
I suppose that as this should be changed to registry.access.redhat.com/openshift3/oauth-proxy:v3.10.45
For updating on Fuse Online on OCP one has to update the Operator Image. This can be done in two ways:
The script 'install_ocp.sh' could help here so when it run and it detects that already a "Syndesis" resource exists of an older versions, it just performs one of the actions above (but not sure whether it has the proper permissions on the imagestreams). Its a bit tricky to make it automatically, but might be possible.
@heiko-braun @tplevko what do you think ?
But maybe there is another possibility to apply the new operator image. @tplevko how did you do this in your tests ?
The productised operator also includes the productised template. Actually it should be build from within productisation build, but it would be helpful to provide productisation some assistance to showcase the build here, too.
Related to syndesisio/syndesis#2888
ImageStreamTag name
property is currently set to a specific version.
I'm in the process to change that since I'm moving to the productized image (using a different docker registry and version), but I can't modify the tag "name" otherwise my resources will no longer able to point to that tag.
I've ended up in the stuation where I have a tag name called v1.1.0
populated by an image called registry.access.redhat.com/openshift3/prometheus:v3.9.25-1
A dash changes everything
Are we referencing the correct camel-k version?
See https://github.com/syndesisio/fuse-online-install/blob/master/install_ocp.sh#L529
Or more generally speaking: Using these scripts (install_ocp.sh --camel-k
), does it install everyhing we need to run camel-k underneath fuse online?
@tmielke commented on Thu Dec 13 2018
[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Documentation issue or request
Following the 10.6. Upgrade Fuse Online on OCP documentation
in step 4 I am told to run
$ bash update_ocp.sh --version
but the script fails with
update_ocp.sh: line 385: /Users/tmielke/Downloads/fuse_online_config.sh: No such file or directory
As a user I want to be able to install Camel-K along side Fuse Online to be able to leverage it from Fuse Online (separate step)
This is more or less a copy from 'syndesis install' with some minor tweak.
Related to syndesisio/syndesis#2888
Apparently the provisioning app doesn't use the SAR_PROJECT parameter yet:
error: error processing template "fuse-ignite/fuse-ignite-1.5": Template.template.openshift.io "fuse-ignite-1.5" is invalid: template.parameters[4]: Required value: template.parameters[4]: parameter SAR_PROJECT is required and must be
It has been added in 7.2.
See also syndesisio/syndesis#3687
so that it can be directly downloaded. Up to now, it requires fuse_online_config.sh to source, but it's much more user-friendly to have a single file.
1.7.22
:
./update_ocp.sh
./update_ocp.sh: line 194: $2: unbound variable
Update imagestreams in avano-upgrade
...
Is seems to have no effect to the functionality
install_ocp.sh doesn't have a switch for installing with data virtualization
This should be 0. Furthermore this parameter is not used at all in the OCP script, but hardcoded to 0. Use #17 for fixing this.
The fuse-online-upgrade image is defined as fuse-ignite-uprade
in the pod definition [1]. This image doesn't exist in the registry and doesn't match the image defined in the template [2].
Should this be defined as registry.redhat.io/fuse7/fuse-ignite-upgrade:<tag>
instead?
[1] https://github.com/syndesisio/fuse-online-install/blob/master/resources/fuse-online-upgrade.yml#L8
[2] https://github.com/syndesisio/fuse-online-install/blob/master/resources/fuse-online-template.yml#L1673
While trying the latest productized images, I have noticed they do not share a common version. Probably due to rebuild or errors, they have different specific versions.
This is incompatible with our current script that assumes everything uses the same one.
Problem is easy to solve, externalizing each one of them and eventually defaulting to a main version.
Do we want to do this or do we have better approaches?
I think there are several issues at play here:
fuse-tech-preview
, but the scripts refer to fuse7
registry.access.redhat.com
as suggested in [1] doesn't work, however pulling form registry.redhat.io
does, hence this repository should be used (http proxy issues)?bash install_ocp.sh --setup
bash install_ocp.sh
{"level":"info","ts":1554297516.0242584,"logger":"cmd","msg":"Using template","template":"/conf/syndesis-template.yml"}
{"level":"info","ts":1554297516.024355,"logger":"cmd","msg":"Go Version: go1.10.2"}
{"level":"info","ts":1554297516.0243587,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1554297516.0243912,"logger":"cmd","msg":"Version of operator-sdk: v0.5.0"}
{"level":"info","ts":1554297516.0245988,"logger":"leader","msg":"Trying to become the leader."}
{"level":"error","ts":1554297516.0932744,"logger":"cmd","msg":"","error":"required env POD_NAME not set, please configure downward API","stacktrace":"github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\nmain.main\n\t/go/src/github.com/syndesisio/syndesis/install/operator/cmd/syndesis-operator/main.go:68\nruntime.main\n\t/opt/rh/go-toolset-7/root/usr/lib/go-toolset-7-golang/src/runtime/proc.go:198"}
the resources for the operator need to be updated to latest changes
cc @heiko-braun
hbraun:fuse-online-install ((HEAD detached at 1.7.5))$ bash install_ocp.sh
pull secret 'syndesis-pull-secret' present, skipping creation ...
Ensuring imagestreams in 1-7-4
Deploying Syndesis operator
ERROR: Cannot create remote resource https://raw.githubusercontent.com/syndesisio/fuse-online-install/1.7.5/resources/fuse-online-operator.yml
I still have my Mac kicking around so not a blocker, but running release.sh
didn't work on my newly set up laptop:
] bash release.sh --verbose
++(release.sh:278): main(): basedir
++(release.sh:33): basedir(): local script=release.sh
++(release.sh:36): basedir(): '[' -L release.sh ']'
+++(release.sh:49): basedir(): dirname release.sh
++(release.sh:49): basedir(): local dir=.
+++(release.sh:50): basedir(): cd .
+++(release.sh:50): basedir(): pwd
++(release.sh:50): basedir(): local full_dir=/home/gashcrumb/Source/fuse-online-install
++(release.sh:51): basedir(): echo /home/gashcrumb/Source/fuse-online-install
+(release.sh:278): main(): release /home/gashcrumb/Source/fuse-online-install
+(release.sh:225): release(): local topdir=/home/gashcrumb/Source/fuse-online-install
+(release.sh:227): release(): source /home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:2): source(): git_fuse_online_install=1.5.10
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:5): source(): tag_server=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:6): source(): tag_ui=1.2-2
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:7): source(): tag_meta=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:8): source(): tag_s2i=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:9): source(): tag_upgrade=1.2-7
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:10): source(): tag_operator=1.2-6
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:13): source(): repository=fuse7
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:16): source(): registry=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888
+(release.sh:229): release(): '[' -z 1.5.10 ']'
+(release.sh:234): release(): create_resources /home/gashcrumb/Source/fuse-online-install 1.5.10
+(release.sh:167): create_resources(): local topdir=/home/gashcrumb/Source/fuse-online-install
+(release.sh:168): create_resources(): local fuse_online_tag=1.5.10
+(release.sh:171): create_resources(): source /home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:2): source(): git_fuse_online_install=1.5.10
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:5): source(): tag_server=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:6): source(): tag_ui=1.2-2
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:7): source(): tag_meta=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:8): source(): tag_s2i=1.2-4
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:9): source(): tag_upgrade=1.2-7
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:10): source(): tag_operator=1.2-6
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:13): source(): repository=fuse7
++(/home/gashcrumb/Source/fuse-online-install/fuse_online_config.sh:16): source(): registry=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888
+(release.sh:173): create_resources(): local is_tag
+(release.sh:174): create_resources(): '[' 1.5.10 = master ']'
++(release.sh:177): create_resources(): extract_minor_version 1.5.10
++(release.sh:143): extract_minor_version(): local version=1.5.10
+++(release.sh:144): extract_minor_version(): echo 1.5.10
+++(release.sh:144): extract_minor_version(): sed -E -n 's/([0-9]+\.[0-9]+).*/\1/p'
++(release.sh:144): extract_minor_version(): local minor_version=1.5
++(release.sh:145): extract_minor_version(): '[' 1.5 = 1.5.10 ']'
++(release.sh:149): extract_minor_version(): echo 1.5
+(release.sh:177): create_resources(): is_tag=1.5
+(release.sh:180): create_resources(): local insecure=false
+(release.sh:181): create_resources(): '[' -pulp-docker01.web.prod.ext.phx2.redhat.com:8888 '!=' brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888 ']'
+(release.sh:182): create_resources(): insecure=true
+(release.sh:185): create_resources(): echo '==== Patch install script with tag'
==== Patch install script with tag
+(release.sh:186): create_resources(): for file in install_ocp.sh update_ocp.sh
+(release.sh:187): create_resources(): sed -e 's/^TAG=.*$/TAG=1.5.10/' -i.bak /home/gashcrumb/Source/fuse-online-install/install_ocp.sh
+(release.sh:188): create_resources(): rm /home/gashcrumb/Source/fuse-online-install/install_ocp.sh.bak
+(release.sh:186): create_resources(): for file in install_ocp.sh update_ocp.sh
+(release.sh:187): create_resources(): sed -e 's/^TAG=.*$/TAG=1.5.10/' -i.bak /home/gashcrumb/Source/fuse-online-install/update_ocp.sh
+(release.sh:188): create_resources(): rm /home/gashcrumb/Source/fuse-online-install/update_ocp.sh.bak
+(release.sh:191): create_resources(): echo '==== Patch imagestream script with current versions'
==== Patch imagestream script with current versions
+(release.sh:192): create_resources(): sed -e 's/{{[ ]*Tags.Online[ ]*}}/1.5/g' -e 's/{{[ ]*Tags.Online.Operator[ ]*}}/1.2-6/g' -e 's/{{[ ]*Docker.Registry[ ]*}}/brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/g' -e 's/{{[ ]*Docker.Image.Repository[ ]*}}/fuse7/g' -e 's/{{[ ]*Docker.Registry.Insecure[ ]*}}/true/g' /home/gashcrumb/Source/fuse-online-install/templates/fuse-online-operator.yml
+(release.sh:200): create_resources(): sed -e 's/{{[ ]*Tags.Online[ ]*}}/1.5/g' -e 's/{{[ ]*Tags.Online.Server[ ]*}}/1.2-4/g' -e 's/{{[ ]*Tags.Online.Ui[ ]*}}/1.2-2/g' -e 's/{{[ ]*Tags.Online.Meta[ ]*}}/1.2-4/g' -e 's/{{[ ]*Tags.Online.S2I[ ]*}}/1.2-4/g' -e 's/{{[ ]*Docker.Registry[ ]*}}/brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/g' -e 's/{{[ ]*Docker.Image.Repository[ ]*}}/fuse7/g' -e 's/{{[ ]*Docker.Registry.Insecure[ ]*}}/true/g' /home/gashcrumb/Source/fuse-online-install/templates/fuse-online-image-streams.yml
+(release.sh:211): create_resources(): sed -e 's/{{[ ]*Tags.Online.Upgrade[ ]*}}/1.2-7/g' -e 's/{{[ ]*Docker.Registry[ ]*}}/brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/g' -e 's/{{[ ]*Docker.Image.Repository[ ]*}}/fuse7/g' /home/gashcrumb/Source/fuse-online-install/templates/fuse-online-upgrade.yml
+(release.sh:217): create_resources(): echo '==== Extract Template from Operator image'
==== Extract Template from Operator image
++(release.sh:218): create_resources(): pwd
+(release.sh:218): create_resources(): docker run -v /home/gashcrumb/Source/fuse-online-install/resources:/resources --entrypoint bash brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-online-operator:1.2-6 -c 'cp /conf/syndesis-template.yml /resources/fuse-online-template.yml'
cp: failed to access '/resources/fuse-online-template.yml': Permission denied
Is that path supposed to be relative?
DB deployment doesn't start at the moment:
NAME READY STATUS RESTARTS AGE
syndesis-meta-1-bc8pn 1/1 Running 0 18m
syndesis-oauthproxy-1-nqmrm 1/1 Running 0 18m
syndesis-operator-1-rm4fk 1/1 Running 0 18m
syndesis-prometheus-1-bl4tp 1/1 Running 0 18m
syndesis-server-1-deploy 0/1 Error 0 18m
syndesis-ui-1-q87mt 1/1 Running 0 18m
todo-1-build 0/1 Completed 0 18m
todo-1-gg6nb 1/1 Running 0 16m
oc get dc syndesis-db
syndesis-db 0 1 0 config,image(postgres_exporter:v0.4.7),image(postgresql:9.5)
oc get is
NAME DOCKER REPO TAGS UPDATED
fuse-ignite-meta 172.30.1.1:5000/syndesis/fuse-ignite-meta 1.6 19 minutes ago
fuse-ignite-s2i 172.30.1.1:5000/syndesis/fuse-ignite-s2i 1.6 19 minutes ago
fuse-ignite-server 172.30.1.1:5000/syndesis/fuse-ignite-server 1.6 19 minutes ago
fuse-ignite-ui 172.30.1.1:5000/syndesis/fuse-ignite-ui 1.6 19 minutes ago
fuse-online-operator 172.30.1.1:5000/syndesis/fuse-online-operator 1.6 19 minutes ago
jboss-amq-63 172.30.1.1:5000/syndesis/jboss-amq-63 1.3 19 minutes ago
oauth-proxy 172.30.1.1:5000/syndesis/oauth-proxy v1.1.0 26 minutes ago
prometheus 172.30.1.1:5000/syndesis/prometheus v2.1.0 26 minutes ago
todo 172.30.1.1:5000/syndesis/todo latest 17 minutes ago
with bash install_ocp.sh
and some tricks to access brew images, I get this error when the operator starts:
{"level":"info","ts":1562927855.5895364,"logger":"cmd","msg":"Using template","template":"/conf/syndesis-template.yaml"}
{"level":"info","ts":1562927855.589842,"logger":"cmd","msg":"Go Version: go1.10.2"}
{"level":"info","ts":1562927855.5898652,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1562927855.5899286,"logger":"cmd","msg":"Version of operator-sdk: v0.8.0"}
{"level":"info","ts":1562927855.590316,"logger":"leader","msg":"Trying to become the leader."}
{"level":"error","ts":1562927855.7130342,"logger":"k8sutil","msg":"Failed to get Pod","Pod.Namespace":"1-7-4","Pod.Name":"syndesis-operator-1-mp7fr","error":"pods \"syndesis-operator-1-mp7fr\" is forbidden: User \"system:serviceaccount:1-7-4:syndesis-operator\" cannot get pods in the namespace \"1-7-4\": no RBAC policy matched","stacktrace":"github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/k8sutil.GetPod\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/k8sutil/k8sutil.go:105\ngithub.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/leader.myOwnerRef\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/leader/leader.go:142\ngithub.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/leader.Become\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/operator-framework/operator-sdk/pkg/leader/leader.go:67\nmain.main\n\t/go/src/github.com/syndesisio/syndesis/install/operator/cmd/syndesis-operator/main.go:70\nruntime.main\n\t/opt/rh/go-toolset-7/root/usr/lib/go-toolset-7-golang/src/runtime/proc.go:198"}
{"level":"error","ts":1562927855.7132056,"logger":"cmd","msg":"","error":"pods \"syndesis-operator-1-mp7fr\" is forbidden: User \"system:serviceaccount:1-7-4:syndesis-operator\" cannot get pods in the namespace \"1-7-4\": no RBAC policy matched","stacktrace":"github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\nmain.main\n\t/go/src/github.com/syndesisio/syndesis/install/operator/cmd/syndesis-operator/main.go:72\nruntime.main\n\t/opt/rh/go-toolset-7/root/usr/lib/go-toolset-7-golang/src/runtime/proc.go:198"}
It seems like the release.sh script doesn't really take the update_ocp.sh script into account. This causes that the update_ocp.sh script is not really usable for upgrading on OCP.
fuse-online-install specifies the image stream for data virt as fuse-ignite-komodo
and the tag as 1.7
:
fuse-online-install/resources/fuse-online-image-streams.yml
Lines 126 to 143 in 5032f83
however the internal template in the operator expects:
from:
kind: ImageStreamTag
name: fuse-komodo-server:latest
There are two issues logged for that: https://issues.jboss.org/browse/ENTESB-11036 https://issues.jboss.org/browse/ENTESB-11037
So either those two will be scheduled for CR2, or we need to edit the resources in fuse-online-install.
Currently the target imagestream tag (e.g. 1.4) is hardcoded in import_images.pl. However this information is also available in fuse_online_config.sh as the first two digets of git_fuse_online_install.
The import script should evaluate this number and use it for the import.
We only needs creds when pulling from registry.redhat.io. The prompt that asks for user/pass and the whole pull secret setup should be skipped when pulling from brew (see registry attribute in cfg)
Right now references to image repository are "hard-coded". It would be good if this is configurable somehow so I can use Nexus, Artifactory, Quay, Satellite etc. as an image repository.
install_ocp.sh script needs to be changed as following code no longer works:
$kamel install --skip-cluster-setup --maven-repository $MAVEN_REPOSITORY --base-image $REGISTRY/$REPOSITORY/fuse-java-openshift:$JAVA_BASE_IMAGE_TAG --context jvm $extra_opts
$REPOSITORY
points to fuse7-tech-preview but image fuse-java-openshift is no longer tech preview and the repository should point to fuse7
We can not just change the property value as it is used with camel-k image which is still TP.
When installing fuse-online with this command ./install_ocp.sh install --camel-k
, there is an error because kamel changes it's repository option to --maven-repository
Download repo to a path with space.
Run a command.
$ bash install_ocp.sh --setup
/FUSE/fuse online /FUSE/fuse online
install_ocp.sh: line 86: cd: too many arguments
The camel-k operator doesn't respect the option of using insecure registry and the pulling always fails with http: server gave HTTP response to HTTPS client.
EDIT:
1.7.23
with cherry-picked ac17a60 , see #170 (comment)
1.7.22
:
./update_ocp.sh
./update_ocp.sh: line 194: $2: unbound variable
Update imagestreams in avano-upgrade
Importing <registry>/fuse7/fuse-ignite-server:1.4-14 to fuse-ignite-server:1.7
Importing <registry>/fuse7/fuse-ignite-server:1.4-14 to fuse-ignite-server:1.7.22
Importing <registry>/fuse7/fuse-ignite-ui:1.4-6 to fuse-ignite-ui:1.7
Importing <registry>/fuse7/fuse-ignite-ui:1.4-6 to fuse-ignite-ui:1.7.22
Importing <registry>/fuse7/fuse-ignite-meta:1.4-13 to fuse-ignite-meta:1.7
Importing <registry>/fuse7/fuse-ignite-meta:1.4-13 to fuse-ignite-meta:1.7.22
Importing <registry>/fuse7/fuse-ignite-s2i:1.4-13 to fuse-ignite-s2i:1.7
Importing <registry>/fuse7/fuse-ignite-s2i:1.4-13 to fuse-ignite-s2i:1.7.22
Importing <registry>/fuse7/fuse-ignite-postgres_exporter:1.4-3 to fuse-ignite-postgres_exporter:1.7
Can't import
As you can see in the exporter:
<registry>/fuse7/fuse-ignite-postgres_exporter:1.4-3
fuse7-tech-preview
fuse-postgres-exporter
to fuse-ignite-postgres_exporter:1.7
postgres_exporter
pull secret 'syndesis-pull-secret' present, skipping creation ...
./install_ocp.sh: line 321: $2: unbound variable
...
doesn't affect the functionality
We currently have specific reference to patch(build) level of Docker image from RH registry. Therefor when new image is published due to update in underlayers, e.g. RHEL or OpenJDK we can't point users to do oc import-image fuse-ignite-server:1.3
. But the whole image Docker image reference needs to be replaced. Probably the most smooth way is something like oc replace -f updated-is.yml
.
There's another way to:
scheduled: true
- to prevent periodical pulls on floating tag1.0
registry.access.redhat.com/fuse7/fuse-ignite-ui:1.0
When created new from scarth the images are imported for the first time. Then on image update release to pick it up only oc import-image {isName}:{istag}
is required. This is outside of whole upgrade flow, when only images itself are changing.
1.7.22
tag:
./update_ocp.sh --version
Update to Fuse Online 1.7.22
fuse-online-operator: 1.4-10
./update_ocp.sh: line 429: ${IMAGE_NAME_PREFIX NEW}-komodo: $tag_komodo: bad substitution
Remove the need to have docker available to install camel k and syndesis
I'm trying the install_ocp.sh script from master against my minishift:
git/github/fuse-online-install master :: bash install_ocp.sh
install_ocp.sh: line 63: ARGS[@]: unbound variable
install_ocp.sh: line 63: ARGS[@]: unbound variable
install_ocp.sh: line 63: ARGS[@]: unbound variable
install_ocp.sh: line 77: ARGS[@]: unbound variable
git/github/fuse-online-install master :: echo $?
1
you can workaround that with specifying some parameter, for example "-f"
git/github/fuse-online-install master :: bash install_ocp.sh -f
Ensuring imagestreams in myproject
Deploying Syndesis operator
Waiting for syndesis-operator to be scaled to 1
Sleeping 10s ...
NAME READY STATUS RESTARTS AGE
syndesis-operator-1-deploy 0/1 Pending 0 0s
syndesis-operator-1-deploy 0/1 Pending 0 0s
syndesis-operator-1-deploy 0/1 ContainerCreating 0 0s
syndesis-operator-1-dqbpx 0/1 Pending 0 0s
syndesis-operator-1-dqbpx 0/1 Pending 0 0s
syndesis-operator-1-dqbpx 0/1 ContainerCreating 0 0s
Sleeping 10s ...
syndesis-operator-1-deploy 1/1 Running 0 2s
syndesis-operator-1-dqbpx 1/1 Running 0 2s
syndesis-operator-1-deploy 0/1 Completed 0 4s
syndesis-operator-1-deploy 0/1 Terminating 0 4s
syndesis-operator-1-deploy 0/1 Terminating 0 4s
Creating Syndesis resource
error: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context
ERROR: Error while creating resource apiVersion: "syndesis.io/v1alpha1" kind: "Syndesis" metadata: name: "app" spec: integration: # No limitations by default on OCP limit: 0 imageStreamNamespace: "myproject"
===============================================================
serviceaccount "syndesis-operator" created
role "syndesis-operator" created
rolebinding "syndesis-operator:install" created
rolebinding "syndesis-operator:view" created
rolebinding "syndesis-operator:edit" created
imagestream "fuse-online-operator" created
deploymentconfig "syndesis-operator" created
3. when there are no image streams, the script will create them in current project, as it is checking them in the current project:
https://github.com/syndesisio/fuse-online-install/blob/master/install_ocp.sh#L341-L342
but the operator expects them to be in fuse-ignite
namespace
^ that was my mistake, I created the custom resource manually and I was missing the image stream namespace
Hello,
Is there an ansible role and playbook to run the installation instead of running a bash script? If not, is there some kind of interest in one?
last one is 2 days old 1.6.22 https://github.com/syndesisio/fuse-online-install/releases/tag/1.6.22 - we will need a new tag (for example 1.6.23
) with official repositories and 1.6
tag pointing to the 1.6.23
Duplicate of https://issues.jboss.org/browse/ENTESB-10775
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.