cloudfoundry / cloudfoundry/bosh

Non-descriptive error message when a BOSH job spec property name is a prefix for another one

Open
#2,495 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.1k
Forks
662
Avg merge
5h 25m
Merged PRs (30d)
2

Description

Describe the bug
It seems that BOSH Director has the following requirement for the properties in a spec file:
No property name should be a prefix for the name of another one.
The problem is that the error message ("string not matched") is inadequate and does not point to the cause of the error.

To Reproduce
Steps to reproduce the behavior (example):
Using the bosh CLI, deploy a job with a spec file that contains something like:

properties:
  ala:
    <...>
  ala.bala:
    <...>

Expected behavior
A clear and concise description of what the problem is (e.g.: The property name "ala" is a prefix for the property name "ala.bala" and this is not allowed.).

Logs
The Ruby exception from the BOSH Director's debug logs is attached.

Versions (please complete the following information):

  • Infrastructure: AWS, GCP, Azure
  • BOSH version: 280.0.15
  • BOSH CLI version: 7.5.0
  • Stemcell version: ubuntu-jammy 22.04.1/1.351

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with a BOSH job spec containing both "ala" and "ala.bala", then inspect the attached Ruby exception in the BOSH Director debug logs. Trace the property-name validation that produces "string not matched". Done means the Director reports which property is a prefix of the other, with coverage for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.