MongoDB sidecar not setting the replica set

Bug #1864463 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical-OSM
Fix Committed
High
David

Bug Description

{"log":" 'pods is forbidden: User \"system:serviceaccount:osm:default\" cannot list resource \"pods\" in API group \"\" in the namespace \"osm\"',\n","stream":"stderr","time":"2020-02-21T12:22:29.029810507Z"}
3:38

> rs.isMaster();
{
        "ismaster" : false,
        "secondary" : false,
        "info" : "Does not have a valid replica set config",
        "isreplicaset" : true,
        "maxBsonObjectSize" : 16777216,
        "maxMessageSizeBytes" : 48000000,
        "maxWriteBatchSize" : 100000,
        "localTime" : ISODate("2020-02-21T14:17:03.879Z"),
        "logicalSessionTimeoutMinutes" : 30,
        "connectionId" : 2171,
        "minWireVersion" : 0,
        "maxWireVersion" : 8,
        "readOnly" : false,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(0, 0),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(0, 0)
}
> exit

rs.conf();
2020-02-21T14:31:13.251+0000 E QUERY [js] uncaught exception: Error: Could not retrieve replica set config: {
        "operationTime" : Timestamp(0, 0),
        "ok" : 0,
        "errmsg" : "no replset config has been received",
        "code" : 94,
        "codeName" : "NotYetInitialized",
        "$clusterTime" : {
                "clusterTime" : Timestamp(0, 0),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        }
} :
rs.conf@src/mongo/shell/utils.js:1531:11
@(shell):1:1

I've assigned a view role to user default and works.

Changed in canonical-osm:
assignee: nobody → 🤖 prod-jenkaas-charmed-osm (prod-jenkaas-charmed-osm)
status: New → Fix Committed
importance: Undecided → High
David (davigar15)
Changed in canonical-osm:
assignee: 🤖 prod-jenkaas-charmed-osm (prod-jenkaas-charmed-osm) → David (davigar15)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.