Failed to pull image "registry.connect.redhat.com/gitlab/gitlab-runner#sha256 - openshift

Go this on Openshift 4.11 running a gitlab-runner/certified, community is fine but not good for production. I only found one related link online about the error
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29470
Unfortunately there's no solution on that link.
I subscribe trial to redhat.io and got a registry login. Created secret for docker and make it default pull. But to no luck on the registry.connect.redhat.com/gitlab/gitlab-runner is nowhere to find. I can pull manually the proxy registry.redhat.io/openshift4/ose-kube-rbac-proxy with no problem and not registry.connect.redhat.com/gitlab/gitlab-runner-operator but the gitlab-manager pod is running anyway so I think there's no problem on the operator.
I troubleshoot using,
https://access.redhat.com/articles/3560571
I got this,
~/tmp$ curl -u $TOKENID:$SECRET "https://sso.redhat.com/auth/realms/rhcc/protocol/redhat-docker-v2/auth?service=docker-registry&client_id=curl&scope=repository:rhel:pull"
curl: (6) Could not resolve host: Connection
curl: (3) malformed
curl: (6) Could not resolve host: to
curl: (6) Could not resolve host: host
curl: (6) Could not resolve host: left
curl: (6) Could not resolve host: intact
curl: (3) Port number ended with ','
{"errors":[{"code":"UNAUTHORIZED","message":"Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/articles/3399531","detail":[{"type":"repository","name":"rhel","actions":["pull"]}]}]}
Is there problem with redhat container?

I test v4.10, it work on it but on that time, I put it in the openshift-operators NS. I add cert-manager like in v4.11 first.

Related

LXD - Cannot list network forwarded ports

I am trying to figure out how to list ports forwarded by LXD through lxc network forward.
I have 2 NIC configured as :
ip a result
I configured network forward ports that way :
lxc network commands
My configuration works quite well and I can access my webserver from the outside :
curl success result
The problem is here : I want to know what ports are opened using this method without using lxd commande (I'm looking for a linux way to list them).
I already tried with netstat, lsof and iptables but nothing seem to let me see the port 8080 that is actually giving me the content I'm looking for :
netstat -ltnuop result
iptables -t nat -L -n result
lsof -i result

curl: (28) Failed to connect to dist.ipfs.io port 443: Operation timed out

I am trying to install ipfs using the following command from this link
enter link description here
curl -O https://dist.ipfs.io/go-ipfs/v0.9.1/go-ipfs_v0.9.1_darwin-arm64.tar.gz
but every time when I run it on terminal gives me this error
curl: (28) Failed to connect to dist.ipfs.io port 443: Operation timed
out
I am using MacBook m1 chip.
also I am using VPN for google services.

Starting with sawtooth xo transaction

I have setup Hyperledger Sawtooth on Docker,
I am trying to test sawtooth XO transactions with following commands
uname#uname:~/sawtooth$ docker exec -it sawtooth-shell-default bash
root#5279e5a413c1:/# xo create one
but I am getting following error
Error: Failed to connect to http://127.0.0.1:8008/batches: HTTPConnectionPool(host='127.0.0.1', port=8008): Max retries exceeded with url: /batches (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
FYKI This commands works for me
From shell this gives me blocks
curl http://rest-api:8008/blocks
From my host this works as expected
curl http://localhost:8008/blocks
curl http://127.0.0.1:8008/blocks
What is wrong with this?
My yaml file is the default one, you can find it here
If you are using docker you have to mention url to APIs this way
xo create one --url http://rest-api:8008
I found this after Ashish gave this hint at
https://chat.hyperledger.org/channel/sawtooth

CircleCI: MySQL starts on its own even after stopping the process

I am having some trouble with default MySQL installation on CircleCI. In 'post' section of 'machine', I stop mysql using, "- sudo service mysql stop". The reason behind doing so is that I want to use docker mysql container on port 3306. My "docker-compose up" takes some time to finish and sometimes before the docker mysql container starts, the mysql process starts again for no reason obvious to me. I have been tracking this issue using the following command.
while true; do sudo netstat -nlp | grep :3306; sleep 2; done
I have a build that ran fine with docker being able to register port 3306, and also a build in which mysqld started again even after stopping giving me the following error on docker-compose up.
ERROR: for dbm01 Cannot start service dbm01: failed to create endpoint minimum_dbm01_1 on network minimum_default: Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Both the builds are of same commit so there is no difference in code. What might be the issue?

Invalid cartridge specified with exit_code 109

i want to create app with REST API Openshift i do this curl Command with smarterclayton cartridge :
curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications
--user "user#gmail.com:passwd"
--data "name=myapp&cartridge=https://github.com/smarterclayton/openshift-cdk-cart/blob/master/metadata/manifest.yml&scale=false"
but i still have and Invalid Cartridge error :
{
"api_version":1.6,
"data":null,
"messages":[{"exit_code":109,
"field":"cartridge",
"index":null,
"severity":"error",
"text":"Invalid cartridge 'https://github.com/smarterclayton/openshift-cdk-cart/blob/master/metadata/manifest.yml' specified."}],
"status":"unprocessable_entity",
"supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],
"type":null,"version":"1.6"
}
and with -H 'Accept: application/xml' option i get this :
curl: (6) Could not resolve host: Accept
curl: (6) Could not resolve host: POST
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
root#localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at openshift.redhat.com Port 80</address>
</body></html>
any ideas how to fix this error?
This should work:
curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications --user "user:pass" --data "name=myapp&cartridge[url]=https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-cdk-cart&scale=false"
You need to supply the [url] after the cartridge parameter, you also need to either point to a manifest.yml file that has the Source-Url element included, or use the cartridge reflector to point to the partial github url with the format user/repo