https://pulumi.com logo
#general
Title
# general
i

incalculable-angle-91273

11/19/2018, 5:52 PM
Hello, I’m running into some issues with my state. I get this error on a
preview
or `up`:
Copy code
error: Duplicate resource URN 'urn:pulumi:mindbody-infra-gcp-richard-laub::mindbody-infra::kubernetes:<http://helm.sh/v2:Chart$kubernetes:config.istio.io/v1alpha2:kubernetesenv::istio-system/handler';|helm.sh/v2:Chart$kubernetes:config.istio.io/v1alpha2:kubernetesenv::istio-system/handler';> try giving it a unique name
But my stack has 0 resources so i’m not sure what is causing the name conflict:
Copy code
▶ pulumi stack | grep resources                                                                                                                                           k8s:(mindbody-richard-laub|alpha)
Current stack resources (0):
    No resources currently in this stack
c

creamy-potato-29402

11/19/2018, 6:49 PM
that’s…. super weird.
Let me regroup on DM, I’d like to look at your state file if possible.
g

gray-city-50684

11/19/2018, 7:26 PM
If I run the
helm template ...
command suggested in istio install docs, in the generated YAML I can see 3 definitions that seems to be overlapping:
Copy code
apiVersion: "<http://config.istio.io/v1alpha2|config.istio.io/v1alpha2>"
kind: prometheus
metadata:
  name: handler
  namespace: istio-system
Copy code
apiVersion: "<http://config.istio.io/v1alpha2|config.istio.io/v1alpha2>"
kind: stdio
metadata:
  name: handler
  namespace: istio-system
spec:
  outputAsJson: true
c

creamy-potato-29402

11/19/2018, 7:28 PM
How strange.
g

gray-city-50684

11/19/2018, 7:29 PM
Copy code
apiVersion: "<http://config.istio.io/v1alpha2|config.istio.io/v1alpha2>"
kind: kubernetesenv
metadata:
  name: handler
  namespace: istio-system
spec:
can this be a cause?
c

creamy-potato-29402

11/19/2018, 7:29 PM
yes, that is the cause.
@gray-city-50684 what version of istio is this?
i

incalculable-angle-91273

11/19/2018, 7:31 PM
strange i ran the against the exact same helm chart on friday and it seemed to work
c

creamy-potato-29402

11/19/2018, 7:31 PM
@incalculable-angle-91273 after looking at your state, it seems like this actually is the problem — there are no existing resources to collide with.
g

gray-city-50684

11/19/2018, 7:32 PM
1.0.3
Just followed the doc here:
… and then the “Helm install with Helm template” here:
c

creamy-potato-29402

11/19/2018, 7:34 PM
yeah, makes sense
I’m actively working on this, I don’t think they’ve actually published the 1.0.3 chart yet.
g

gray-city-50684

11/19/2018, 7:37 PM
the script that installs the sources installs that
it calls to this other script for version:
it returns 1.0.3
c

creamy-potato-29402

11/19/2018, 7:39 PM
I mean they haven't put the version into the helm repo
g

gray-city-50684

11/19/2018, 7:39 PM
The docs I linked are prelim for 1.1.0, that is what I found first with Google 🙂
c

creamy-potato-29402

11/19/2018, 7:39 PM
You can install it manually of course
g

gray-city-50684

11/19/2018, 7:43 PM
o, I have no idea about that
c

creamy-potato-29402

11/19/2018, 7:47 PM
I mean that you are installing manually
g

gray-city-50684

11/19/2018, 7:48 PM
Helm install command:
helm install install/kubernetes/helm/istio --name istio --namespace istio-system
so it works from whatever the
<https://git.io/getLatestIstio>
downloads, doesn’t use the central chart repo
(if I read this correctly)
c

creamy-potato-29402

11/19/2018, 7:49 PM
That's right.
g

gray-city-50684

11/19/2018, 7:55 PM
just to make sure I didn’t derail your original thought process: if apiVersion + metadata/name is same (but kind is different) that can cause the unique name error?
c

creamy-potato-29402

11/19/2018, 7:55 PM
No.
g

gray-city-50684

11/19/2018, 7:57 PM
because the “kind” part is different for the 3 I listed, I just realized it (apiVersion, name, namespace is same)
c

creamy-potato-29402

11/19/2018, 7:57 PM
I thought you were saying there's duplicates of each
If not then something weird is happening
g

gray-city-50684

11/19/2018, 7:58 PM
uhh, that’s what I feared - I’m going to shut up now… Sorry
c

creamy-potato-29402

11/19/2018, 7:59 PM
I'll take a look soon, sigh
@incalculable-angle-91273 what version are you on
i

incalculable-angle-91273

11/19/2018, 8:06 PM
1.0.2
c

creamy-potato-29402

11/19/2018, 8:08 PM
Ok. Any other information you can give about how to reproduce
i

incalculable-angle-91273

11/19/2018, 8:19 PM
😓 actually i can’t reproduce it now. I was hacking away on another branch and when i came back and ran
npm i
it started behaving nicely
4 Views