2025-05-31 12:54:42,506 - INFO - Domain Default found not creating
2025-05-31 12:54:42,638 - INFO - Project ctest-TestBasicPolicy-90723059 not found, creating it
2025-05-31 12:54:43,183 - INFO - Created Project:ctest-TestBasicPolicy-90723059, ID : 4e761001-0001-46ad-9155-e2861ce67044
2025-05-31 12:54:44,744 - INFO - ================================================================================
2025-05-31 12:54:44,744 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-31 12:54:44,744 - 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-05-31 12:54:45,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-31 12:54:45,000 - INFO - Initial checks done. Running the testcase now
2025-05-31 12:54:45,000 - INFO -
2025-05-31 12:54:45,581 - DEBUG - Response for create_network : {'network': {'id': '59ee0da5-1ce7-4e41-9547-67f6acb0211d', 'name': 'ctest-vn-22153289', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'project_id': '4e761001000146ad9155e2861ce67044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-vn-22153289'], 'port_security_enabled': True, 'description': ''}}
2025-05-31 12:54:45,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aaa7262-0eef-405b-a06b-53a6048b3c94', 'name': '', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'network_id': '59ee0da5-1ce7-4e41-9547-67f6acb0211d', 'ip_version': 4, 'cidr': '189.81.16.192/26', 'allocation_pools': [{'start': '189.81.16.194', 'end': '189.81.16.254'}], 'gateway_ip': '189.81.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.81.16.194', 'tags': [], 'project_id': '4e761001000146ad9155e2861ce67044'}}
2025-05-31 12:54:45,820 - INFO - Created VN ctest-vn-22153289
2025-05-31 12:54:45,874 - DEBUG - VN ctest-vn-22153289 UUID is 59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:46,202 - DEBUG - Response for create_network : {'network': {'id': '22175f15-b52e-42d4-bdf6-1b6c99238e54', 'name': 'ctest-vn-69995956', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'project_id': '4e761001000146ad9155e2861ce67044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-vn-69995956'], 'port_security_enabled': True, 'description': ''}}
2025-05-31 12:54:46,412 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7c2fad1-92fc-495d-a420-f4a0544c7d5f', 'name': '', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'network_id': '22175f15-b52e-42d4-bdf6-1b6c99238e54', 'ip_version': 4, 'cidr': '134.50.82.64/26', 'allocation_pools': [{'start': '134.50.82.66', 'end': '134.50.82.126'}], 'gateway_ip': '134.50.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.50.82.66', 'tags': [], 'project_id': '4e761001000146ad9155e2861ce67044'}}
2025-05-31 12:54:46,430 - INFO - Created VN ctest-vn-69995956
2025-05-31 12:54:46,482 - DEBUG - VN ctest-vn-69995956 UUID is 22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:46,634 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289, 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-90723059:ctest-vn-69995956, 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-05-31 12:54:46,944 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59ee0da5-1ce7-4e41-9547-67f6acb0211d', 'name': 'ctest-vn-22153289', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'project_id': '4e761001000146ad9155e2861ce67044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9aaa7262-0eef-405b-a06b-53a6048b3c94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-vn-22153289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-policy-allow-all-80017357']], 'subnet_ipam': [{'subnet_cidr': '189.81.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-31 12:54:47,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22175f15-b52e-42d4-bdf6-1b6c99238e54', 'name': 'ctest-vn-69995956', 'tenant_id': '4e761001000146ad9155e2861ce67044', 'project_id': '4e761001000146ad9155e2861ce67044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7c2fad1-92fc-495d-a420-f4a0544c7d5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-vn-69995956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-policy-allow-all-80017357']], 'subnet_ipam': [{'subnet_cidr': '134.50.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-31 12:54:47,386 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-31 12:54:47,720 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-31 12:54:47,750 - DEBUG - Requesting: http://10.0.0.254:8082/domain/beb5b3e1-5cb5-46e0-bd1f-f444b59efc81
2025-05-31 12:54:47,765 - DEBUG - Requesting: http://10.0.0.254:8082/project/4e761001-0001-46ad-9155-e2861ce67044
2025-05-31 12:54:47,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:47,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:47,864 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab19d072-f571-4030-8ff5-67f7f595d59f
2025-05-31 12:54:47,872 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab19d072-f571-4030-8ff5-67f7f595d59f
2025-05-31 12:54:47,880 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c173caee-4e1a-4181-9ece-4ac395a18a07
2025-05-31 12:54:47,887 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-31 12:54:47,887 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:47,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab19d072-f571-4030-8ff5-67f7f595d59f
2025-05-31 12:54:47,910 - INFO - Verified VN network id 8 for VN 59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:47,910 - INFO - Verifications in API Server for VN ctest-vn-22153289 passed
2025-05-31 12:54:47,910 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:47,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab19d072-f571-4030-8ff5-67f7f595d59f
2025-05-31 12:54:47,926 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab19d072-f571-4030-8ff5-67f7f595d59f
2025-05-31 12:54:47,932 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c173caee-4e1a-4181-9ece-4ac395a18a07
2025-05-31 12:54:47,944 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90723059', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6480131916638408257', 'uuid-lslong': '10756680544154558749'}, 'enable': 'true', 'created': '2025-05-31T12:54:45', 'last-modified': '2025-05-31T12:54:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026389'}
2025-05-31 12:54:47,950 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-31 12:54:47,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22153289 passed
2025-05-31 12:54:47,951 - DEBUG - ====Verifying policy data for ctest-vn-22153289 in API_Server ======
2025-05-31 12:54:47,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-31 12:54:47,956 - DEBUG - Requesting: http://10.0.0.254:8082/domain/beb5b3e1-5cb5-46e0-bd1f-f444b59efc81
2025-05-31 12:54:47,967 - DEBUG - Requesting: http://10.0.0.254:8082/project/4e761001-0001-46ad-9155-e2861ce67044
2025-05-31 12:54:48,038 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59ee0da5-1ce7-4e41-9547-67f6acb0211d
2025-05-31 12:54:48,048 - DEBUG - ==>Verifying data for policy with id: a1503b15-2a9b-4407-9b9e-5c09c0634bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-policy-allow-all-80017357']
2025-05-31 12:54:48,048 - INFO - VN ctest-vn-22153289 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-31 12:54:48,048 - DEBUG - Verifying the vn in opserver
2025-05-31 12:54:48,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289 virtual network link through opserver 10.0.0.254
2025-05-31 12:54:48,048 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-31 12:54:48,392 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-31 12:54:48,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289?flat'}
2025-05-31 12:54:48,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-22153289 is found in opserver
2025-05-31 12:54:48,458 - DEBUG - Do not have enough data to verify VN in agent
2025-05-31 12:54:48,464 - DEBUG - VRF ids for VN ctest-vn-22153289: {}
2025-05-31 12:54:48,464 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-31 12:54:48,470 - DEBUG - Requesting: http://10.0.0.254:8082/domain/beb5b3e1-5cb5-46e0-bd1f-f444b59efc81
2025-05-31 12:54:48,481 - DEBUG - Requesting: http://10.0.0.254:8082/project/4e761001-0001-46ad-9155-e2861ce67044
2025-05-31 12:54:48,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc45334b-9a38-4d37-a894-66f33e7f5add
2025-05-31 12:54:48,583 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc45334b-9a38-4d37-a894-66f33e7f5add
2025-05-31 12:54:48,590 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a4ce9b0-8fc4-49b1-bedb-167466e61226
2025-05-31 12:54:48,596 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-31 12:54:48,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc45334b-9a38-4d37-a894-66f33e7f5add
2025-05-31 12:54:48,623 - INFO - Verified VN network id 9 for VN 22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,623 - INFO - Verifications in API Server for VN ctest-vn-69995956 passed
2025-05-31 12:54:48,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,635 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc45334b-9a38-4d37-a894-66f33e7f5add
2025-05-31 12:54:48,643 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc45334b-9a38-4d37-a894-66f33e7f5add
2025-05-31 12:54:48,651 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a4ce9b0-8fc4-49b1-bedb-167466e61226
2025-05-31 12:54:48,683 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-69995956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90723059', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2456536668592554708', 'uuid-lslong': '13688158270678863444'}, 'enable': 'true', 'created': '2025-05-31T12:54:46', 'last-modified': '2025-05-31T12:54:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531167'}
2025-05-31 12:54:48,690 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-31 12:54:48,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69995956 passed
2025-05-31 12:54:48,690 - DEBUG - ====Verifying policy data for ctest-vn-69995956 in API_Server ======
2025-05-31 12:54:48,690 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-31 12:54:48,697 - DEBUG - Requesting: http://10.0.0.254:8082/domain/beb5b3e1-5cb5-46e0-bd1f-f444b59efc81
2025-05-31 12:54:48,713 - DEBUG - Requesting: http://10.0.0.254:8082/project/4e761001-0001-46ad-9155-e2861ce67044
2025-05-31 12:54:48,792 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/22175f15-b52e-42d4-bdf6-1b6c99238e54
2025-05-31 12:54:48,805 - DEBUG - ==>Verifying data for policy with id: a1503b15-2a9b-4407-9b9e-5c09c0634bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-90723059', 'ctest-policy-allow-all-80017357']
2025-05-31 12:54:48,805 - INFO - VN ctest-vn-69995956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-31 12:54:48,805 - DEBUG - Verifying the vn in opserver
2025-05-31 12:54:48,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-69995956 virtual network link through opserver 10.0.0.254
2025-05-31 12:54:48,806 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-31 12:54:48,820 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-69995956', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-69995956?flat'}
2025-05-31 12:54:48,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90723059:ctest-vn-69995956 is found in opserver
2025-05-31 12:54:48,833 - DEBUG - Do not have enough data to verify VN in agent
2025-05-31 12:54:48,841 - DEBUG - VRF ids for VN ctest-vn-69995956: {}
2025-05-31 12:54:48,897 - DEBUG - Services list from nova: [