2024-11-07 16:48:54,871 - INFO - Domain Default found not creating
2024-11-07 16:48:55,046 - INFO - Project ctest-TestBasicPolicy-56578453 not found, creating it
2024-11-07 16:48:55,580 - INFO - Created Project:ctest-TestBasicPolicy-56578453, ID : b2b803de-99df-4cc2-95e7-ff4dd09024f9
2024-11-07 16:48:57,247 - INFO - ================================================================================
2024-11-07 16:48:57,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 16:48:57,247 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-11-07 16:48:57,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with
2024-11-07 16:48:57,507 - INFO - Initial checks done. Running the testcase now
2024-11-07 16:48:57,507 - INFO -
2024-11-07 16:48:58,135 - DEBUG - Response for create_network : {'network': {'id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'name': 'ctest-vn-37910489', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-37910489'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:48:58,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '774f8405-ab67-4f4c-8793-731e01928c42', 'name': '', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'network_id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'ip_version': 4, 'cidr': '143.230.203.64/26', 'allocation_pools': [{'start': '143.230.203.66', 'end': '143.230.203.126'}], 'gateway_ip': '143.230.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.230.203.66', 'tags': [], 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9'}}
2024-11-07 16:48:58,302 - INFO - Created VN ctest-vn-37910489
2024-11-07 16:48:58,360 - DEBUG - VN ctest-vn-37910489 UUID is 79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:48:58,717 - DEBUG - Response for create_network : {'network': {'id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'name': 'ctest-vn-51284649', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-51284649'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:48:58,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec49192b-8d7e-47f3-aa5b-87c2e2d99e42', 'name': '', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'network_id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'ip_version': 4, 'cidr': '209.36.50.128/26', 'allocation_pools': [{'start': '209.36.50.130', 'end': '209.36.50.190'}], 'gateway_ip': '209.36.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.36.50.130', 'tags': [], 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9'}}
2024-11-07 16:48:58,927 - INFO - Created VN ctest-vn-51284649
2024-11-07 16:48:58,988 - DEBUG - VN ctest-vn-51284649 UUID is e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:48:59,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-11-07 16:48:59,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'name': 'ctest-vn-37910489', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['774f8405-ab67-4f4c-8793-731e01928c42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-37910489'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']], 'subnet_ipam': [{'subnet_cidr': '143.230.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:48:59,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'name': 'ctest-vn-51284649', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec49192b-8d7e-47f3-aa5b-87c2e2d99e42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-51284649'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']], 'subnet_ipam': [{'subnet_cidr': '209.36.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:48:59,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-11-07 16:49:00,262 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-11-07 16:49:00,299 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860
2024-11-07 16:49:00,317 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9
2024-11-07 16:49:00,409 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9
2024-11-07 16:49:00,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9
2024-11-07 16:49:00,464 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2c17e1-80e7-456e-b51f-43f811e3cc04
2024-11-07 16:49:00,483 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 16:49:00,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9
2024-11-07 16:49:00,527 - INFO - Verified VN network id 8 for VN 79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,527 - INFO - Verifications in API Server for VN ctest-vn-37910489 passed
2024-11-07 16:49:00,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9
2024-11-07 16:49:00,553 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9
2024-11-07 16:49:00,562 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2c17e1-80e7-456e-b51f-43f811e3cc04
2024-11-07 16:49:00,579 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56578453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752776981550942885', 'uuid-lslong': '13575411891776056771'}, 'enable': 'true', 'created': '2024-11-07T16:48:58', 'last-modified': '2024-11-07T16:48:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.148783'}
2024-11-07 16:49:00,586 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 16:49:00,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37910489 passed
2024-11-07 16:49:00,586 - DEBUG - ====Verifying policy data for ctest-vn-37910489 in API_Server ======
2024-11-07 16:49:00,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-11-07 16:49:00,594 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860
2024-11-07 16:49:00,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9
2024-11-07 16:49:00,701 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3
2024-11-07 16:49:00,717 - DEBUG - ==>Verifying data for policy with id: 265a22fb-8d62-4374-856d-0bf5ee4346a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']
2024-11-07 16:49:00,718 - INFO - VN ctest-vn-37910489 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 16:49:00,718 - DEBUG - Verifying the vn in opserver
2024-11-07 16:49:00,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489 virtual network link through opserver 10.0.0.38
2024-11-07 16:49:00,718 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-11-07 16:49:01,060 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-11-07 16:49:01,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489?flat'}
2024-11-07 16:49:01,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489 is found in opserver
2024-11-07 16:49:01,144 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 16:49:01,150 - DEBUG - VRF ids for VN ctest-vn-37910489: {}
2024-11-07 16:49:01,151 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-11-07 16:49:01,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860
2024-11-07 16:49:01,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9
2024-11-07 16:49:01,272 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f
2024-11-07 16:49:01,320 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f
2024-11-07 16:49:01,330 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e010514-11e3-49f0-9cf0-b8ee0edc4d09
2024-11-07 16:49:01,338 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 16:49:01,338 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,353 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f
2024-11-07 16:49:01,377 - INFO - Verified VN network id 9 for VN e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,377 - INFO - Verifications in API Server for VN ctest-vn-51284649 passed
2024-11-07 16:49:01,377 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,392 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f
2024-11-07 16:49:01,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f
2024-11-07 16:49:01,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e010514-11e3-49f0-9cf0-b8ee0edc4d09
2024-11-07 16:49:01,428 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56578453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16747041436051131291', 'uuid-lslong': '13577806997499131875'}, 'enable': 'true', 'created': '2024-11-07T16:48:58', 'last-modified': '2024-11-07T16:48:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.728437'}
2024-11-07 16:49:01,436 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 16:49:01,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51284649 passed
2024-11-07 16:49:01,436 - DEBUG - ====Verifying policy data for ctest-vn-51284649 in API_Server ======
2024-11-07 16:49:01,436 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-11-07 16:49:01,443 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860
2024-11-07 16:49:01,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9
2024-11-07 16:49:01,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3
2024-11-07 16:49:01,557 - DEBUG - ==>Verifying data for policy with id: 265a22fb-8d62-4374-856d-0bf5ee4346a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']
2024-11-07 16:49:01,557 - INFO - VN ctest-vn-51284649 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 16:49:01,558 - DEBUG - Verifying the vn in opserver
2024-11-07 16:49:01,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649 virtual network link through opserver 10.0.0.38
2024-11-07 16:49:01,558 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-11-07 16:49:01,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649?flat'}
2024-11-07 16:49:01,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649 is found in opserver
2024-11-07 16:49:01,582 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 16:49:01,588 - DEBUG - VRF ids for VN ctest-vn-51284649: {}
2024-11-07 16:49:01,664 - DEBUG - Services list from nova: [