AcademySoftwareFoundation / AcademySoftwareFoundation/OpenCue

[rqd] Host defined facility in rqd.conf sets to local by default

Closed
#1,521 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Python
Stars
957
Forks
259
Avg merge
3d 6h
Merged PRs (30d)
16

Description

**Describe the bug**
While rqd.conf supports the `DEFAULT_FACILITY` tag, if rqd attempts to connect to a `cuebot` with a `DEFAULT_FACILITY` that is not defined on the `cuebot` host, it defaults to `local`. This was unexpected, and perhaps wrong?

Cuebot and RQD should be more aggressively denying host attachments to opencue if it's attempting to use a facility that isn't yet defined or know in cuebot with some active (and specific) error message at the startup of rqd.

**Steps to Reproduce**
in rqd.conf:
```
DEFAULT_FACILITY=aws-uswest2
RQD_TAGS=util
```
Then start rqd to any cuebot server which does not define this facility. It will attach (silently) to `local.util`.

**Expected behavior**
rqd should return an error once cuebot decides that the facility name isn't known to that cuebot installation. This error should include some general directions on how to add a facility and allocations to the cuebot server.

**Version Number**
master

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the connection with DEFAULT_FACILITY set in rqd.conf against a cuebot that does not define that facility. Trace the rqd startup attachment and cuebot response to determine where the fallback to local occurs. Done means the attachment is rejected with a specific error and guidance about defining facilities and allocations on cuebot.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.