[SAC] [OSGeo] #2861: Setup woodie-client image and container on osgeo9

#2861: Setup woodie-client image and container on osgeo9
---------------------------+-----------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Keywords:
---------------------------+-----------------------
So I have woodie-server running on osgeo8 and also installed woodpecker
client in that server.

Need another client. I'll create a repo for thaton gitea to track the
details for setting up future clients.

I'll start with using the ubuntu-220docker image I created (which is used
for woodie-server).
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2861: Setup woodie-client image and container on osgeo9
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed
* milestone: Unplanned => Sysadmin Contract 2023-I

Comment:

Done. I started setting one up on osgeo8 and reduced the one that is part
of woodie-server to just one run. The others are set to 4.

Config details here: https://git.osgeo.org/gitea/sac/osgeo8/wiki/woodie-
client

and the agent configuration is here - https://git.osgeo.org/gitea/sac
/woodpecker-agent-config

The tricky part was proxying gRPC traffic thru nginx and setting true for
GRPC.

This should also keep the size of woodie-server low since the bulk of the
growth is caused by runs that failed or were canceled and left dead
containers behind.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2861: Setup woodie-client image and container on osgeo9
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------------------------
Comment (by robe):

Also created a woodie-client on osgeo4
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2861: Setup woodie-client image and container on osgeo9
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Changes (by robe):

* status: closed => reopened
* resolution: fixed =>

Comment:

Reopening because the grpc requests seem to be hit or miss:

When I check the docker logs on one of the clients using:

{{{
  docker logs osgeo-woodie-agent -f
}}}

I'm seeing a lot of

{{{
{"level":"error","error":"rpc error: code = Unavailable desc = unexpected
HTTP status code received from server: 502 (Bad Gateway); transport:
received unexpected content-type
\"text/html\"","time":"2023-07-31T01:23:08Z","message":"grpc error: log():
code: Unavailable: rpc error: code = Unavailable desc = unexpected HTTP
status code received from server: 502 (Bad Gateway); transport: received
unexpected content-type \"text/html\""}

}}}

But yet the osgeo8 and osgeo9 and osgeo4 woodie-clients are working as I
can see a trisquel3 live container running even when these errors are
showing. So might be something like i need to allocate more worker threads
for agent.woodie.osgeo.org site (which I have set to use grpc on the https
port)
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2861: Setup woodie-client image and container on osgeo9
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: woodie |
---------------------------+---------------------------------------
Changes (by strk):

* keywords: => woodie

Comment:

The osgeo4 client is failing with the same error (html received instead of
expected grpc)
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861#comment:4&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2861: Setup woodie-client image and container on osgeo9
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: woodie |
---------------------------+---------------------------------------
Comment (by strk):

I'd suggest to raise the osgeo8 number of agent processes back up to 4
until this problem is fixed
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2861#comment:5&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.