Advertisement
Guest User

Untitled

a guest
Feb 14th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.43 KB | None | 0 0
  1. Initializing the backend...
  2.  
  3. Initializing provider plugins...
  4. - Finding juju/juju versions matching "~> 0.10.0"...
  5. - Installing juju/juju v0.10.1...
  6. - Installed juju/juju v0.10.1 (self-signed, key ID B836F54C10C569E2)
  7.  
  8. Partner and community providers are signed by their developers.
  9. If you'd like to know more about provider signing, you can read about it here:
  10. https://www.terraform.io/docs/cli/plugins/signing.html
  11.  
  12. Terraform has created a lock file .terraform.lock.hcl to record the provider
  13. selections it made above. Include this file in your version control repository
  14. so that Terraform can guarantee to make the same selections by default when
  15. you run "terraform init" in the future.
  16.  
  17. Terraform has been successfully initialized!
  18.  
  19. You may now begin working with Terraform. Try running "terraform plan" to see
  20. any changes that are required for your infrastructure. All Terraform commands
  21. should now work.
  22.  
  23. If you ever set or change modules or backend configuration for Terraform,
  24. rerun this command to reinitialize your working directory. If you forget, other
  25. commands will detect it and remind you to do so if necessary.
  26. juju_model.kafka: Importing from ID "test-terraform-y13p"...
  27. juju_model.kafka: Import prepared!
  28. Prepared juju_model for import
  29. juju_model.kafka: Refreshing state... [id=test-terraform-y13p]
  30.  
  31. Import successful!
  32.  
  33. The resources that were imported are shown above. These resources are now in
  34. your Terraform state and will henceforth be managed by Terraform.
  35.  
  36. juju_model.kafka: Refreshing state... [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  37.  
  38. Terraform used the selected providers to generate the following execution
  39. plan. Resource actions are indicated with the following symbols:
  40. + create
  41. ~ update in-place
  42.  
  43. Terraform will perform the following actions:
  44.  
  45. # juju_application.integrator will be created
  46. + resource "juju_application" "integrator" {
  47. + config = {
  48. + "extra-user-roles" = "admin"
  49. + "topic-name" = "default"
  50. }
  51. + constraints = (known after apply)
  52. + id = (known after apply)
  53. + model = "test-terraform-y13p"
  54. + name = (known after apply)
  55. + placement = (known after apply)
  56. + principal = (known after apply)
  57. + trust = false
  58. + units = 1
  59.  
  60. + charm {
  61. + base = "ubuntu@22.04"
  62. + channel = "edge"
  63. + name = "data-integrator"
  64. + revision = (known after apply)
  65. + series = (known after apply)
  66. }
  67. }
  68.  
  69. # juju_application.kafka will be created
  70. + resource "juju_application" "kafka" {
  71. + config = {}
  72. + constraints = (known after apply)
  73. + id = (known after apply)
  74. + model = "test-terraform-y13p"
  75. + name = (known after apply)
  76. + placement = (known after apply)
  77. + principal = (known after apply)
  78. + trust = false
  79. + units = 1
  80.  
  81. + charm {
  82. + base = "ubuntu@22.04"
  83. + channel = "3/edge"
  84. + name = "kafka"
  85. + revision = (known after apply)
  86. + series = (known after apply)
  87. }
  88. }
  89.  
  90. # juju_application.tls will be created
  91. + resource "juju_application" "tls" {
  92. + config = {
  93. + "ca-common-name" = "Kafka"
  94. }
  95. + constraints = (known after apply)
  96. + id = (known after apply)
  97. + model = "test-terraform-y13p"
  98. + name = (known after apply)
  99. + placement = (known after apply)
  100. + principal = (known after apply)
  101. + trust = false
  102. + units = 1
  103.  
  104. + charm {
  105. + base = "ubuntu@22.04"
  106. + channel = "edge"
  107. + name = "self-signed-certificates"
  108. + revision = (known after apply)
  109. + series = (known after apply)
  110. }
  111. }
  112.  
  113. # juju_application.zookeeper will be created
  114. + resource "juju_application" "zookeeper" {
  115. + config = {}
  116. + constraints = (known after apply)
  117. + id = (known after apply)
  118. + model = "test-terraform-y13p"
  119. + name = (known after apply)
  120. + placement = (known after apply)
  121. + principal = (known after apply)
  122. + trust = false
  123. + units = 3
  124.  
  125. + charm {
  126. + base = "ubuntu@22.04"
  127. + channel = "3/edge"
  128. + name = "zookeeper"
  129. + revision = (known after apply)
  130. + series = (known after apply)
  131. }
  132. }
  133.  
  134. # juju_integration.integrator_kafka will be created
  135. + resource "juju_integration" "integrator_kafka" {
  136. + id = (known after apply)
  137. + model = "test-terraform-y13p"
  138.  
  139. + application {
  140. + endpoint = (known after apply)
  141. + name = (known after apply)
  142. }
  143. + application {
  144. + endpoint = (known after apply)
  145. + name = (known after apply)
  146. }
  147. }
  148.  
  149. # juju_integration.kafka_tls will be created
  150. + resource "juju_integration" "kafka_tls" {
  151. + id = (known after apply)
  152. + model = "test-terraform-y13p"
  153.  
  154. + application {
  155. + endpoint = "certificates"
  156. + name = (known after apply)
  157. }
  158. + application {
  159. + endpoint = (known after apply)
  160. + name = (known after apply)
  161. }
  162. }
  163.  
  164. # juju_integration.kafka_zookeeper will be created
  165. + resource "juju_integration" "kafka_zookeeper" {
  166. + id = (known after apply)
  167. + model = "test-terraform-y13p"
  168.  
  169. + application {
  170. + endpoint = (known after apply)
  171. + name = (known after apply)
  172. }
  173. + application {
  174. + endpoint = (known after apply)
  175. + name = (known after apply)
  176. }
  177. }
  178.  
  179. # juju_integration.zookeeper_tls will be created
  180. + resource "juju_integration" "zookeeper_tls" {
  181. + id = (known after apply)
  182. + model = "test-terraform-y13p"
  183.  
  184. + application {
  185. + endpoint = (known after apply)
  186. + name = (known after apply)
  187. }
  188. + application {
  189. + endpoint = (known after apply)
  190. + name = (known after apply)
  191. }
  192. }
  193.  
  194. # juju_machine.kafka[0] will be created
  195. + resource "juju_machine" "kafka" {
  196. + base = "ubuntu@22.04"
  197. + constraints = "cores=2 mem=2G root-disk=1G"
  198. + id = (known after apply)
  199. + machine_id = (known after apply)
  200. + model = "test-terraform-y13p"
  201. + name = "kafka-0"
  202. + series = (known after apply)
  203. }
  204.  
  205. # juju_machine.zookeeper[0] will be created
  206. + resource "juju_machine" "zookeeper" {
  207. + base = "ubuntu@22.04"
  208. + constraints = "cores=2 mem=2G root-disk=1G"
  209. + id = (known after apply)
  210. + machine_id = (known after apply)
  211. + model = "test-terraform-y13p"
  212. + name = "zookeeper-0"
  213. + series = (known after apply)
  214. }
  215.  
  216. # juju_machine.zookeeper[1] will be created
  217. + resource "juju_machine" "zookeeper" {
  218. + base = "ubuntu@22.04"
  219. + constraints = "cores=2 mem=2G root-disk=1G"
  220. + id = (known after apply)
  221. + machine_id = (known after apply)
  222. + model = "test-terraform-y13p"
  223. + name = "zookeeper-1"
  224. + series = (known after apply)
  225. }
  226.  
  227. # juju_machine.zookeeper[2] will be created
  228. + resource "juju_machine" "zookeeper" {
  229. + base = "ubuntu@22.04"
  230. + constraints = "cores=2 mem=2G root-disk=1G"
  231. + id = (known after apply)
  232. + machine_id = (known after apply)
  233. + model = "test-terraform-y13p"
  234. + name = "zookeeper-2"
  235. + series = (known after apply)
  236. }
  237.  
  238. # juju_model.kafka will be updated in-place
  239. ~ resource "juju_model" "kafka" {
  240. + config = {
  241. + "logging-config" = "<root>=DEBUG"
  242. + "update-status-hook-interval" = "2m"
  243. }
  244. id = "0ec0bb48-4cba-4635-8a0b-b1b1abf68439"
  245. name = "test-terraform-y13p"
  246. # (2 unchanged attributes hidden)
  247.  
  248. # (1 unchanged block hidden)
  249. }
  250.  
  251. Plan: 12 to add, 1 to change, 0 to destroy.
  252. juju_model.kafka: Modifying... [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  253. juju_model.kafka: Modifications complete after 1s [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  254. juju_machine.zookeeper[1]: Creating...
  255. juju_machine.kafka[0]: Creating...
  256. juju_machine.zookeeper[0]: Creating...
  257. juju_machine.zookeeper[2]: Creating...
  258. juju_application.tls: Creating...
  259. juju_application.integrator: Creating...
  260. juju_machine.zookeeper[1]: Creation complete after 0s [id=test-terraform-y13p:1:zookeeper-1]
  261. juju_machine.zookeeper[0]: Creation complete after 0s [id=test-terraform-y13p:3:zookeeper-0]
  262. juju_machine.kafka[0]: Creation complete after 0s [id=test-terraform-y13p:0:kafka-0]
  263. juju_machine.zookeeper[2]: Creation complete after 0s [id=test-terraform-y13p:2:zookeeper-2]
  264. juju_application.kafka: Creating...
  265. juju_application.zookeeper: Creating...
  266. juju_application.tls: Creation complete after 1s [id=test-terraform-y13p:self-signed-certificates]
  267. juju_application.integrator: Creation complete after 1s [id=test-terraform-y13p:data-integrator]
  268.  
  269. INFO test_terraform:test_terraform.py:62
  270. Initializing the backend...
  271.  
  272. Initializing provider plugins...
  273. - Finding juju/juju versions matching "~> 0.10.0"...
  274. - Installing juju/juju v0.10.1...
  275. - Installed juju/juju v0.10.1 (self-signed, key ID B836F54C10C569E2)
  276.  
  277. Partner and community providers are signed by their developers.
  278. If you'd like to know more about provider signing, you can read about it here:
  279. https://www.terraform.io/docs/cli/plugins/signing.html
  280.  
  281. Terraform has created a lock file .terraform.lock.hcl to record the provider
  282. selections it made above. Include this file in your version control repository
  283. so that Terraform can guarantee to make the same selections by default when
  284. you run "terraform init" in the future.
  285.  
  286. Terraform has been successfully initialized!
  287.  
  288. You may now begin working with Terraform. Try running "terraform plan" to see
  289. any changes that are required for your infrastructure. All Terraform commands
  290. should now work.
  291.  
  292. If you ever set or change modules or backend configuration for Terraform,
  293. rerun this command to reinitialize your working directory. If you forget, other
  294. commands will detect it and remind you to do so if necessary.
  295. juju_model.kafka: Importing from ID "test-terraform-y13p"...
  296. juju_model.kafka: Import prepared!
  297. Prepared juju_model for import
  298. juju_model.kafka: Refreshing state... [id=test-terraform-y13p]
  299.  
  300. Import successful!
  301.  
  302. The resources that were imported are shown above. These resources are now in
  303. your Terraform state and will henceforth be managed by Terraform.
  304.  
  305. juju_model.kafka: Refreshing state... [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  306.  
  307. Terraform used the selected providers to generate the following execution
  308. plan. Resource actions are indicated with the following symbols:
  309. + create
  310. ~ update in-place
  311.  
  312. Terraform will perform the following actions:
  313.  
  314. # juju_application.integrator will be created
  315. + resource "juju_application" "integrator" {
  316. + config = {
  317. + "extra-user-roles" = "admin"
  318. + "topic-name" = "default"
  319. }
  320. + constraints = (known after apply)
  321. + id = (known after apply)
  322. + model = "test-terraform-y13p"
  323. + name = (known after apply)
  324. + placement = (known after apply)
  325. + principal = (known after apply)
  326. + trust = false
  327. + units = 1
  328.  
  329. + charm {
  330. + base = "ubuntu@22.04"
  331. + channel = "edge"
  332. + name = "data-integrator"
  333. + revision = (known after apply)
  334. + series = (known after apply)
  335. }
  336. }
  337.  
  338. # juju_application.kafka will be created
  339. + resource "juju_application" "kafka" {
  340. + config = {}
  341. + constraints = (known after apply)
  342. + id = (known after apply)
  343. + model = "test-terraform-y13p"
  344. + name = (known after apply)
  345. + placement = (known after apply)
  346. + principal = (known after apply)
  347. + trust = false
  348. + units = 1
  349.  
  350. + charm {
  351. + base = "ubuntu@22.04"
  352. + channel = "3/edge"
  353. + name = "kafka"
  354. + revision = (known after apply)
  355. + series = (known after apply)
  356. }
  357. }
  358.  
  359. # juju_application.tls will be created
  360. + resource "juju_application" "tls" {
  361. + config = {
  362. + "ca-common-name" = "Kafka"
  363. }
  364. + constraints = (known after apply)
  365. + id = (known after apply)
  366. + model = "test-terraform-y13p"
  367. + name = (known after apply)
  368. + placement = (known after apply)
  369. + principal = (known after apply)
  370. + trust = false
  371. + units = 1
  372.  
  373. + charm {
  374. + base = "ubuntu@22.04"
  375. + channel = "edge"
  376. + name = "self-signed-certificates"
  377. + revision = (known after apply)
  378. + series = (known after apply)
  379. }
  380. }
  381.  
  382. # juju_application.zookeeper will be created
  383. + resource "juju_application" "zookeeper" {
  384. + config = {}
  385. + constraints = (known after apply)
  386. + id = (known after apply)
  387. + model = "test-terraform-y13p"
  388. + name = (known after apply)
  389. + placement = (known after apply)
  390. + principal = (known after apply)
  391. + trust = false
  392. + units = 3
  393.  
  394. + charm {
  395. + base = "ubuntu@22.04"
  396. + channel = "3/edge"
  397. + name = "zookeeper"
  398. + revision = (known after apply)
  399. + series = (known after apply)
  400. }
  401. }
  402.  
  403. # juju_integration.integrator_kafka will be created
  404. + resource "juju_integration" "integrator_kafka" {
  405. + id = (known after apply)
  406. + model = "test-terraform-y13p"
  407.  
  408. + application {
  409. + endpoint = (known after apply)
  410. + name = (known after apply)
  411. }
  412. + application {
  413. + endpoint = (known after apply)
  414. + name = (known after apply)
  415. }
  416. }
  417.  
  418. # juju_integration.kafka_tls will be created
  419. + resource "juju_integration" "kafka_tls" {
  420. + id = (known after apply)
  421. + model = "test-terraform-y13p"
  422.  
  423. + application {
  424. + endpoint = "certificates"
  425. + name = (known after apply)
  426. }
  427. + application {
  428. + endpoint = (known after apply)
  429. + name = (known after apply)
  430. }
  431. }
  432.  
  433. # juju_integration.kafka_zookeeper will be created
  434. + resource "juju_integration" "kafka_zookeeper" {
  435. + id = (known after apply)
  436. + model = "test-terraform-y13p"
  437.  
  438. + application {
  439. + endpoint = (known after apply)
  440. + name = (known after apply)
  441. }
  442. + application {
  443. + endpoint = (known after apply)
  444. + name = (known after apply)
  445. }
  446. }
  447.  
  448. # juju_integration.zookeeper_tls will be created
  449. + resource "juju_integration" "zookeeper_tls" {
  450. + id = (known after apply)
  451. + model = "test-terraform-y13p"
  452.  
  453. + application {
  454. + endpoint = (known after apply)
  455. + name = (known after apply)
  456. }
  457. + application {
  458. + endpoint = (known after apply)
  459. + name = (known after apply)
  460. }
  461. }
  462.  
  463. # juju_machine.kafka[0] will be created
  464. + resource "juju_machine" "kafka" {
  465. + base = "ubuntu@22.04"
  466. + constraints = "cores=2 mem=2G root-disk=1G"
  467. + id = (known after apply)
  468. + machine_id = (known after apply)
  469. + model = "test-terraform-y13p"
  470. + name = "kafka-0"
  471. + series = (known after apply)
  472. }
  473.  
  474. # juju_machine.zookeeper[0] will be created
  475. + resource "juju_machine" "zookeeper" {
  476. + base = "ubuntu@22.04"
  477. + constraints = "cores=2 mem=2G root-disk=1G"
  478. + id = (known after apply)
  479. + machine_id = (known after apply)
  480. + model = "test-terraform-y13p"
  481. + name = "zookeeper-0"
  482. + series = (known after apply)
  483. }
  484.  
  485. # juju_machine.zookeeper[1] will be created
  486. + resource "juju_machine" "zookeeper" {
  487. + base = "ubuntu@22.04"
  488. + constraints = "cores=2 mem=2G root-disk=1G"
  489. + id = (known after apply)
  490. + machine_id = (known after apply)
  491. + model = "test-terraform-y13p"
  492. + name = "zookeeper-1"
  493. + series = (known after apply)
  494. }
  495.  
  496. # juju_machine.zookeeper[2] will be created
  497. + resource "juju_machine" "zookeeper" {
  498. + base = "ubuntu@22.04"
  499. + constraints = "cores=2 mem=2G root-disk=1G"
  500. + id = (known after apply)
  501. + machine_id = (known after apply)
  502. + model = "test-terraform-y13p"
  503. + name = "zookeeper-2"
  504. + series = (known after apply)
  505. }
  506.  
  507. # juju_model.kafka will be updated in-place
  508. ~ resource "juju_model" "kafka" {
  509. + config = {
  510. + "logging-config" = "<root>=DEBUG"
  511. + "update-status-hook-interval" = "2m"
  512. }
  513. id = "0ec0bb48-4cba-4635-8a0b-b1b1abf68439"
  514. name = "test-terraform-y13p"
  515. # (2 unchanged attributes hidden)
  516.  
  517. # (1 unchanged block hidden)
  518. }
  519.  
  520. Plan: 12 to add, 1 to change, 0 to destroy.
  521. juju_model.kafka: Modifying... [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  522. juju_model.kafka: Modifications complete after 1s [id=0ec0bb48-4cba-4635-8a0b-b1b1abf68439]
  523. juju_machine.zookeeper[1]: Creating...
  524. juju_machine.kafka[0]: Creating...
  525. juju_machine.zookeeper[0]: Creating...
  526. juju_machine.zookeeper[2]: Creating...
  527. juju_application.tls: Creating...
  528. juju_application.integrator: Creating...
  529. juju_machine.zookeeper[1]: Creation complete after 0s [id=test-terraform-y13p:1:zookeeper-1]
  530. juju_machine.zookeeper[0]: Creation complete after 0s [id=test-terraform-y13p:3:zookeeper-0]
  531. juju_machine.kafka[0]: Creation complete after 0s [id=test-terraform-y13p:0:kafka-0]
  532. juju_machine.zookeeper[2]: Creation complete after 0s [id=test-terraform-y13p:2:zookeeper-2]
  533. juju_application.kafka: Creating...
  534. juju_application.zookeeper: Creating...
  535. juju_application.tls: Creation complete after 1s [id=test-terraform-y13p:self-signed-certificates]
  536. juju_application.integrator: Creation complete after 1s [id=test-terraform-y13p:data-integrator]
  537.  
  538. INFO test_terraform:test_terraform.py:63 ╷
  539. │ Error: Provider produced inconsistent result after apply
  540. │ When applying changes to juju_application.zookeeper, provider
  541. │ "provider[\"registry.terraform.io/juju/juju\"]" produced an unexpected new
  542. │ value: .placement: was cty.StringVal("3,1,2"), but now cty.StringVal("").
  543. │ This is a bug in the provider, which should be reported in the provider's
  544. │ own issue tracker.
  545. │ Error: Provider produced inconsistent result after apply
  546. │ When applying changes to juju_application.kafka, provider
  547. │ "provider[\"registry.terraform.io/juju/juju\"]" produced an unexpected new
  548. │ value: .placement: was cty.StringVal("0"), but now cty.StringVal("").
  549. │ This is a bug in the provider, which should be reported in the provider's
  550. │ own issue tracker.
  551.  
  552. FAILED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement