2025-04-09 14:08:36,529 - INFO - Domain Default found not creating
2025-04-09 14:08:36,685 - INFO - Project ctest-TestBasicPolicy-57541615 not found, creating it
2025-04-09 14:08:37,152 - INFO - Created Project:ctest-TestBasicPolicy-57541615, ID : 0d9db1a6-8184-4ade-9db4-53b851ea1490
2025-04-09 14:08:38,616 - INFO - ================================================================================
2025-04-09 14:08:38,616 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 14:08:38,616 - 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
2025-04-09 14:08:38,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.17': '0'}} with
2025-04-09 14:08:38,878 - INFO - Initial checks done. Running the testcase now
2025-04-09 14:08:38,878 - INFO -
2025-04-09 14:08:39,438 - DEBUG - Response for create_network : {'network': {'id': '06d9c0a4-393a-40be-9c4b-e4819be51d0b', 'name': 'ctest-vn-94113157', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'project_id': '0d9db1a681844ade9db453b851ea1490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-vn-94113157'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:08:39,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '9945094e-6d81-4883-b38c-9a6022792330', 'name': '', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'network_id': '06d9c0a4-393a-40be-9c4b-e4819be51d0b', 'ip_version': 4, 'cidr': '191.209.102.128/26', 'allocation_pools': [{'start': '191.209.102.130', 'end': '191.209.102.190'}], 'gateway_ip': '191.209.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.209.102.130', 'tags': [], 'project_id': '0d9db1a681844ade9db453b851ea1490'}}
2025-04-09 14:08:39,638 - INFO - Created VN ctest-vn-94113157
2025-04-09 14:08:39,692 - DEBUG - VN ctest-vn-94113157 UUID is 06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:39,995 - DEBUG - Response for create_network : {'network': {'id': '8b9accb9-982f-42ff-bec8-c3662b567eb5', 'name': 'ctest-vn-69511975', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'project_id': '0d9db1a681844ade9db453b851ea1490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-vn-69511975'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:08:40,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '87b4b67d-4213-426d-9232-028619cff996', 'name': '', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'network_id': '8b9accb9-982f-42ff-bec8-c3662b567eb5', 'ip_version': 4, 'cidr': '101.128.227.192/26', 'allocation_pools': [{'start': '101.128.227.194', 'end': '101.128.227.254'}], 'gateway_ip': '101.128.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.128.227.194', 'tags': [], 'project_id': '0d9db1a681844ade9db453b851ea1490'}}
2025-04-09 14:08:40,231 - INFO - Created VN ctest-vn-69511975
2025-04-09 14:08:40,284 - DEBUG - VN ctest-vn-69511975 UUID is 8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:40,400 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157, 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-57541615:ctest-vn-69511975, 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]
2025-04-09 14:08:40,690 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06d9c0a4-393a-40be-9c4b-e4819be51d0b', 'name': 'ctest-vn-94113157', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'project_id': '0d9db1a681844ade9db453b851ea1490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9945094e-6d81-4883-b38c-9a6022792330'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-vn-94113157'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-policy-allow-all-53247551']], 'subnet_ipam': [{'subnet_cidr': '191.209.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:08:40,927 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b9accb9-982f-42ff-bec8-c3662b567eb5', 'name': 'ctest-vn-69511975', 'tenant_id': '0d9db1a681844ade9db453b851ea1490', 'project_id': '0d9db1a681844ade9db453b851ea1490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87b4b67d-4213-426d-9232-028619cff996'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-vn-69511975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-policy-allow-all-53247551']], 'subnet_ipam': [{'subnet_cidr': '101.128.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:08:41,075 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-04-09 14:08:41,383 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-04-09 14:08:41,412 - DEBUG - Requesting: http://10.0.0.45:8082/domain/667112f9-da51-4340-8003-167e5aa87c68
2025-04-09 14:08:41,425 - DEBUG - Requesting: http://10.0.0.45:8082/project/0d9db1a6-8184-4ade-9db4-53b851ea1490
2025-04-09 14:08:41,501 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,514 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,525 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/36da8a81-b067-43a9-9301-ca952f995b87
2025-04-09 14:08:41,533 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/36da8a81-b067-43a9-9301-ca952f995b87
2025-04-09 14:08:41,542 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/405c4906-e401-46e2-8879-dfab790290ad
2025-04-09 14:08:41,553 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 14:08:41,553 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,564 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/36da8a81-b067-43a9-9301-ca952f995b87
2025-04-09 14:08:41,580 - INFO - Verified VN network id 7 for VN 06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,581 - INFO - Verifications in API Server for VN ctest-vn-94113157 passed
2025-04-09 14:08:41,581 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,592 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/36da8a81-b067-43a9-9301-ca952f995b87
2025-04-09 14:08:41,602 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/36da8a81-b067-43a9-9301-ca952f995b87
2025-04-09 14:08:41,612 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/405c4906-e401-46e2-8879-dfab790290ad
2025-04-09 14:08:41,629 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57541615', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '493637445741068478', 'uuid-lslong': '11262346538487454987'}, 'enable': 'true', 'created': '2025-04-09T14:08:39', 'last-modified': '2025-04-09T14:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956970'}
2025-04-09 14:08:41,637 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 14:08:41,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94113157 passed
2025-04-09 14:08:41,638 - DEBUG - ====Verifying policy data for ctest-vn-94113157 in API_Server ======
2025-04-09 14:08:41,638 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-04-09 14:08:41,646 - DEBUG - Requesting: http://10.0.0.45:8082/domain/667112f9-da51-4340-8003-167e5aa87c68
2025-04-09 14:08:41,659 - DEBUG - Requesting: http://10.0.0.45:8082/project/0d9db1a6-8184-4ade-9db4-53b851ea1490
2025-04-09 14:08:41,734 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/06d9c0a4-393a-40be-9c4b-e4819be51d0b
2025-04-09 14:08:41,745 - DEBUG - ==>Verifying data for policy with id: f1ea8928-adc9-4426-a19e-a8ea6998b63d, fqn: ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-policy-allow-all-53247551']
2025-04-09 14:08:41,745 - INFO - VN ctest-vn-94113157 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 14:08:41,745 - DEBUG - Verifying the vn in opserver
2025-04-09 14:08:41,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157 virtual network link through opserver 10.0.0.45
2025-04-09 14:08:41,745 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-04-09 14:08:42,040 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-04-09 14:08:42,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157?flat'}
2025-04-09 14:08:42,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-94113157 is found in opserver
2025-04-09 14:08:42,115 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 14:08:42,121 - DEBUG - VRF ids for VN ctest-vn-94113157: {}
2025-04-09 14:08:42,121 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-04-09 14:08:42,129 - DEBUG - Requesting: http://10.0.0.45:8082/domain/667112f9-da51-4340-8003-167e5aa87c68
2025-04-09 14:08:42,143 - DEBUG - Requesting: http://10.0.0.45:8082/project/0d9db1a6-8184-4ade-9db4-53b851ea1490
2025-04-09 14:08:42,221 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,244 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,257 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e9034411-3036-4138-89a1-4a83f23859df
2025-04-09 14:08:42,266 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e9034411-3036-4138-89a1-4a83f23859df
2025-04-09 14:08:42,276 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/6919439a-8292-4938-9452-2afe0dc9eeed
2025-04-09 14:08:42,283 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 14:08:42,284 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,294 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e9034411-3036-4138-89a1-4a83f23859df
2025-04-09 14:08:42,319 - INFO - Verified VN network id 8 for VN 8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,319 - INFO - Verifications in API Server for VN ctest-vn-69511975 passed
2025-04-09 14:08:42,319 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,330 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e9034411-3036-4138-89a1-4a83f23859df
2025-04-09 14:08:42,339 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e9034411-3036-4138-89a1-4a83f23859df
2025-04-09 14:08:42,348 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/6919439a-8292-4938-9452-2afe0dc9eeed
2025-04-09 14:08:42,364 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-69511975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57541615', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10059577815179674367', 'uuid-lslong': '13747452706129608373'}, 'enable': 'true', 'created': '2025-04-09T14:08:39', 'last-modified': '2025-04-09T14:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449709'}
2025-04-09 14:08:42,370 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 14:08:42,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69511975 passed
2025-04-09 14:08:42,371 - DEBUG - ====Verifying policy data for ctest-vn-69511975 in API_Server ======
2025-04-09 14:08:42,371 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-04-09 14:08:42,377 - DEBUG - Requesting: http://10.0.0.45:8082/domain/667112f9-da51-4340-8003-167e5aa87c68
2025-04-09 14:08:42,390 - DEBUG - Requesting: http://10.0.0.45:8082/project/0d9db1a6-8184-4ade-9db4-53b851ea1490
2025-04-09 14:08:42,464 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8b9accb9-982f-42ff-bec8-c3662b567eb5
2025-04-09 14:08:42,475 - DEBUG - ==>Verifying data for policy with id: f1ea8928-adc9-4426-a19e-a8ea6998b63d, fqn: ['default-domain', 'ctest-TestBasicPolicy-57541615', 'ctest-policy-allow-all-53247551']
2025-04-09 14:08:42,475 - INFO - VN ctest-vn-69511975 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 14:08:42,475 - DEBUG - Verifying the vn in opserver
2025-04-09 14:08:42,475 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-69511975 virtual network link through opserver 10.0.0.45
2025-04-09 14:08:42,475 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-04-09 14:08:42,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-69511975', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-69511975?flat'}
2025-04-09 14:08:42,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57541615:ctest-vn-69511975 is found in opserver
2025-04-09 14:08:42,500 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 14:08:42,506 - DEBUG - VRF ids for VN ctest-vn-69511975: {}
2025-04-09 14:08:42,569 - DEBUG - Services list from nova: [