Open jryberg opened 6 years ago
ping @flavio looks like you added this here: https://github.com/saltstack/salt/pull/39514
mind taking a look at this?
i can confirm that issue. when the namespace is newly created it is reported as failed (the first couple of lines are also printed red in the shell) ...
myhost.com:
----------
ID: my_namespace
Function: kubernetes.namespace_present
Name: my_ns
Result: False
Comment:
Started: 23:44:42.937843
Duration: 29.003 ms
Changes:
----------
namespace:
----------
new:
----------
api_version:
v1
kind:
Namespace
metadata:
----------
annotations:
None
cluster_name:
None
creation_timestamp:
¸20180227T23:44:42.000000
deletion_grace_period_seconds:
None
deletion_timestamp:
None
finalizers:
None
generate_name:
None
generation:
None
initializers:
None
labels:
None
name:
my_ns
namespace:
None
owner_references:
None
resource_version:
836415
self_link:
/api/v1/namespaces/my_ns
uid:
2f15dab9-1c18-11e8-865f-000d3a2cdd3b
spec:
----------
finalizers:
- kubernetes
status:
----------
phase:
Active
old:
----------
Failed: 1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Has it been fixed?
Thank you for updating this issue. It is no longer marked as stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Thank you for updating this issue. It is no longer marked as stale.
Description of Issue/Question
When I create a new namespace using salt.states.kubernetes.namespace_present it's failing even if it's successfully created.
Setup
namespace.sls
Kubernetes Python client version 3: https://github.com/saltstack/salt/issues/44701
Steps to Reproduce Issue
Access to Kubernetes cluster running 1.9.2 Create namespace.sls Run the state and this will be the end result
Maybe the output is parsed wrongly? 'status': {'phase': 'Active'} was the end result
The namespace was created
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Master
Minion