Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider mode deployment in compact mode fails #11242

Open
fbalak opened this issue Jan 28, 2025 · 0 comments · May be fixed by #11245
Open

Provider mode deployment in compact mode fails #11242

fbalak opened this issue Jan 28, 2025 · 0 comments · May be fixed by #11245
Labels
bug Something isn't working provider mode deployment Issues preventing Provider mode deployments on any stage provider-client Provider-client solution

Comments

@fbalak
Copy link
Contributor

fbalak commented Jan 28, 2025

request = <SubRequest 'cluster' for >
log_cli_level = 'INFO'
record_testsuite_property = <bound method LogXML.add_global_property of <_pytest.junitxml.LogXML object at 0x7fbe219ad760>>
set_live_must_gather_images = None

@pytest.fixture(scope="session", autouse=True)
def cluster(
    request, log_cli_level, record_testsuite_property, set_live_must_gather_images
):
    """
    This fixture initiates deployment for both OCP and OCS clusters.
    Specific platform deployment classes will handle the fine details
    of action
    """
    log.info(f"All logs located at {ocsci_log_path()}")

(...)
# set environment variable for early testing of RHCOS
if ocsci_config.ENV_DATA.get("early_testing"):
release_img = ocsci_config.ENV_DATA["RELEASE_IMG"]
log.info(f"Running early testing of RHCOS with release image: {release_img}")
os.environ["RELEASE_IMG"] = release_img
os.environ["OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE"] = release_img

    if deploy:
        # Deploy cluster
      deployer.deploy_cluster(log_cli_level)

tests/conftest.py:1958:


ocs_ci/deployment/deployment.py:702: in deploy_cluster
setup_local_storage(storageclass=self.DEFAULT_STORAGECLASS_LSO)
ocs_ci/deployment/helpers/lso_helpers.py:230: in setup_local_storage
verify_pvs_created(expected_pvs, storageclass, False)
ocs_ci/utility/retry.py:49: in f_retry
return f(*args, **kwargs)


expected_pvs = 0, storageclass = 'localblock', exact_count_pvs = False

@retry(AssertionError, 120, 10, 1)
def verify_pvs_created(expected_pvs, storageclass, exact_count_pvs=True):
    """
    Verify that PVs were created and are in the Available state

    Args:
        expected_pvs (int): number of PVs to verify
        storageclass (str): Name of storageclass
        exact_count_pvs (bool): True if expected_pvs should match exactly with PVs created,
            False, if PVs created is more than or equal to expected_pvs

    Raises:
        AssertionError: if any PVs are not in the Available state or if the
            number of PVs does not match the given parameter.

    """
    logger.info("Verifying PVs are created")
    out = run_cmd("oc get pv -o json")
    pv_json = json.loads(out)
  assert pv_json["items"], f"No PVs created but we are expecting {expected_pvs}"

E AssertionError: No PVs created but we are expecting 0

ocs_ci/deployment/helpers/lso_helpers.py:379: AssertionError

@fbalak fbalak added bug Something isn't working provider mode deployment Issues preventing Provider mode deployments on any stage provider-client Provider-client solution labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working provider mode deployment Issues preventing Provider mode deployments on any stage provider-client Provider-client solution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant