-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtopenai.py
More file actions
135 lines (97 loc) · 4.83 KB
/
topenai.py
File metadata and controls
135 lines (97 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
# openai.api_key = ""
prompt="""summarize action and failed reason from text
Text:
failed to reconcile network error using unmanaged vpc and subnet <*> cidr specified but it doesn t exist in vpc <*> cluster <*> name <*> namespace <*> reconciler group <*> reconciler kind AWSCluster
action:
error using unmanaged vpc and subnet
reason
cidr specified but it doesn t exist in vpc
Text:
failed to reconcile LB attachment error could not register control plane instance <*> with load balancer failed to register instance with APIServer ELB <*> instance is in availability zone <*> no public subnets attached to the ELB in the same zone
action:
could not register control plane instance with load balancer
reason:
no public subnets attached to the ELB in the same zone
Text:
Error deleting a network error googleapi Error <*> <*> <*> The network resource <*> is already being used by <*> namespace <*> reconciler group <*> reconciler kind GCPCluster name <*>
action:
Error deleting a network
reason:
The network resource is already being used
Text:
Subnetwork not found.. skipping error googleapi Error <*> The resource <*> was not found notFound namespace <*> reconciler group <*> reconciler kind GCPCluster name <*> region <*>
action:
Subnetwork not found
reason:
resource not found
Text:
Reconciler error error failed to retrieve Spec.ProviderID from infrastructure provider for Machine <*> in namespace <*> field not found name <*> namespace <*> reconciler group <*> reconciler kind Machine
action:
failed to retrieve Spec.ProviderID from infrastructure provider
reason:
field not found
Text:
Failed to update SpectroClusterStatusConditions Code ClusterOperationNotAllowed Msg cluster operation cluster conditionType update not allowed with cluster state Deleted Ref <*> Details <nil> cluster <*>
action:
Failed to update SpectroClusterStatusConditions
reason:
cluster conditionType update not allowed with cluster state Deleted
Text:
failed to list all ingress spectrocluster Namespace <*> Name <*> error detail Get https <*> <*> dial tcp lookup <*> on <*> <*> no such host
action:
failed to list all ingress
reason:
no such host
Text:
Reconciler error error kubeconfig not available name <*> namespace <*> reconciler group <*> reconciler kind SpectroCluster
action:
kubeconfig not available
reason:
kubeconfig not available
Text:
Reconciler error error error creating client and cache for remote cluster error creating <*> rest mapper for remote cluster <*> context deadline exceeded name <*> namespace <*> reconciler group <*> reconciler kind Machine
action:
error creating client and cache for remote cluster
reason:
context deadline exceeded
Text:
Reconciler error error failed to force pivot cluster <*> name <*> namespace <*> reconciler group <*> reconciler kind SpectroCluster
action:
failed to force pivot cluster
reason:
failed to force pivot cluster
Text:
error deleting network for AWSManagedControlPlane error error patching conditions The condition ClusterSecurityGroupsReady was modified by a different process and this caused a merge/ChangeCondition conflict <*> n tType ClusterSecurityGroupsReady n tStatus False n tSeverity Info <*> tLastTransitionTime <*> Time s <*> <*> <*> <*> <*> UTC n+ tLastTransitionTime <*> Time s <*> <*> <*> <*> <*> UTC <*> tReason Deleting n+ tReason Deleted n tMessage n n reconciler group <*> reconciler kind AWSManagedControlPlane name <*> namespace <*>
action:
error deleting network for AWSManagedControlPlane
reason:
The condition ClusterSecurityGroupsReady was modified by a different process and this caused a merge/ChangeCondition conflict
Text:
unable to parse crd file continue to next error couldn t get version/kind json parse error json cannot unmarshal array into Go value of type struct APIVersion string json apiVersion omitempty Kind string json kind omitempty spectrocluster Namespace <*> Name <*> failed file <*>
action:
unable to parse crd file continue to next
reason:
json cannot unmarshal array into Go value of type struct APIVersion string
Text:
Error removing protection finalizer from PVC err Operation cannot be fulfilled on persistentvolumeclaims <*> StorageError invalid object Code 4 Key <*> ResourceVersion 0 AdditionalErrorMsg Precondition failed UID in precondition <*> UID in object meta PVC <*>
action:
Error removing protection finalizer from PVC
reason:
Precondition failed UID in precondition
Text:
reconciler error error failed to delete security group <*> dependencyviolation resource <*> has a dependent object n tstatus code <*> request id <*> name varun-cluster namespace <*> reconciler group <*> reconciler kind awscluster
"""
response = openai.Completion.create(
engine="davinci",
prompt=prompt,
temperature=0.5,
max_tokens=120,
top_p=1.0,
frequency_penalty=0.0,
presence_penalty=0.0,
stop=["\n\n"]
)
print(response.choices[0].text)