2025-04-22 20:23:55,967 - INFO - Domain Default found not creating
2025-04-22 20:23:56,082 - INFO - Project ctest-TestBasicPolicy-30897832 not found, creating it
2025-04-22 20:23:56,499 - INFO - Created Project:ctest-TestBasicPolicy-30897832, ID : 5e00f245-a7b2-45d9-a2da-39f03f00f2f8
2025-04-22 20:23:57,824 - INFO - ================================================================================
2025-04-22 20:23:57,825 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 20:23:57,825 - 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-22 20:23:58,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-04-22 20:23:58,080 - INFO - Initial checks done. Running the testcase now
2025-04-22 20:23:58,080 - INFO -
2025-04-22 20:23:58,601 - DEBUG - Response for create_network : {'network': {'id': '5ef24c81-4186-4006-901f-876fd9505b53', 'name': 'ctest-vn-80583861', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-80583861'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:23:58,783 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b59e2372-95b2-4a2e-a722-db1349b4d4df', 'name': '', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'network_id': '5ef24c81-4186-4006-901f-876fd9505b53', 'ip_version': 4, 'cidr': '123.38.181.0/26', 'allocation_pools': [{'start': '123.38.181.2', 'end': '123.38.181.62'}], 'gateway_ip': '123.38.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.38.181.2', 'tags': [], 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8'}}
2025-04-22 20:23:58,798 - INFO - Created VN ctest-vn-80583861
2025-04-22 20:23:58,851 - DEBUG - VN ctest-vn-80583861 UUID is 5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:23:59,153 - DEBUG - Response for create_network : {'network': {'id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'name': 'ctest-vn-98105606', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-98105606'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:23:59,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '1557945c-99b0-4916-a1d1-d48b2d2455a9', 'name': '', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'network_id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'ip_version': 4, 'cidr': '157.208.148.192/26', 'allocation_pools': [{'start': '157.208.148.194', 'end': '157.208.148.254'}], 'gateway_ip': '157.208.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.208.148.194', 'tags': [], 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8'}}
2025-04-22 20:23:59,357 - INFO - Created VN ctest-vn-98105606
2025-04-22 20:23:59,406 - DEBUG - VN ctest-vn-98105606 UUID is 2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:23:59,546 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861, 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-30897832:ctest-vn-98105606, 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-22 20:23:59,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ef24c81-4186-4006-901f-876fd9505b53', 'name': 'ctest-vn-80583861', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b59e2372-95b2-4a2e-a722-db1349b4d4df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-80583861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']], 'subnet_ipam': [{'subnet_cidr': '123.38.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:24:00,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'name': 'ctest-vn-98105606', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1557945c-99b0-4916-a1d1-d48b2d2455a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-98105606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']], 'subnet_ipam': [{'subnet_cidr': '157.208.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:24:00,227 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-22 20:24:00,555 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-22 20:24:00,595 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49
2025-04-22 20:24:00,668 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8
2025-04-22 20:24:00,767 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,784 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,793 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c
2025-04-22 20:24:00,802 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c
2025-04-22 20:24:00,811 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/85e5ee1b-98b5-4d52-9f50-f83372c31b8d
2025-04-22 20:24:00,817 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 20:24:00,817 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,831 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c
2025-04-22 20:24:00,847 - INFO - Verified VN network id 9 for VN 5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,847 - INFO - Verifications in API Server for VN ctest-vn-80583861 passed
2025-04-22 20:24:00,847 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,860 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c
2025-04-22 20:24:00,868 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c
2025-04-22 20:24:00,874 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/85e5ee1b-98b5-4d52-9f50-f83372c31b8d
2025-04-22 20:24:00,892 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30897832', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6841614901963014150', 'uuid-lslong': '10385168180196694867'}, 'enable': 'true', 'created': '2025-04-22T20:23:58', 'last-modified': '2025-04-22T20:23:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.098580'}
2025-04-22 20:24:00,898 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 20:24:00,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80583861 passed
2025-04-22 20:24:00,898 - DEBUG - ====Verifying policy data for ctest-vn-80583861 in API_Server ======
2025-04-22 20:24:00,898 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-22 20:24:00,904 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49
2025-04-22 20:24:00,915 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8
2025-04-22 20:24:00,982 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53
2025-04-22 20:24:00,991 - DEBUG - ==>Verifying data for policy with id: 47c20e1e-a5a2-4720-89e6-c64b0e363928, fqn: ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']
2025-04-22 20:24:00,991 - INFO - VN ctest-vn-80583861 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 20:24:00,991 - DEBUG - Verifying the vn in opserver
2025-04-22 20:24:00,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861 virtual network link through opserver 10.0.0.249
2025-04-22 20:24:00,991 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-22 20:24:01,277 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-22 20:24:01,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861?flat'}
2025-04-22 20:24:01,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861 is found in opserver
2025-04-22 20:24:01,333 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 20:24:01,337 - DEBUG - VRF ids for VN ctest-vn-80583861: {}
2025-04-22 20:24:01,337 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-22 20:24:01,341 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49
2025-04-22 20:24:01,351 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8
2025-04-22 20:24:01,451 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,461 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2
2025-04-22 20:24:01,475 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2
2025-04-22 20:24:01,481 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/984fb5ff-6e62-4f62-a1e3-39ff0df431ab
2025-04-22 20:24:01,487 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 20:24:01,487 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,495 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2
2025-04-22 20:24:01,507 - INFO - Verified VN network id 10 for VN 2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,507 - INFO - Verifications in API Server for VN ctest-vn-98105606 passed
2025-04-22 20:24:01,507 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,515 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2
2025-04-22 20:24:01,521 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2
2025-04-22 20:24:01,526 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/984fb5ff-6e62-4f62-a1e3-39ff0df431ab
2025-04-22 20:24:01,537 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30897832', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3388450490466386765', 'uuid-lslong': '11736538416723599595'}, 'enable': 'true', 'created': '2025-04-22T20:23:59', 'last-modified': '2025-04-22T20:24:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525351'}
2025-04-22 20:24:01,542 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 20:24:01,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98105606 passed
2025-04-22 20:24:01,542 - DEBUG - ====Verifying policy data for ctest-vn-98105606 in API_Server ======
2025-04-22 20:24:01,542 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-22 20:24:01,547 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49
2025-04-22 20:24:01,556 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8
2025-04-22 20:24:01,623 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb
2025-04-22 20:24:01,632 - DEBUG - ==>Verifying data for policy with id: 47c20e1e-a5a2-4720-89e6-c64b0e363928, fqn: ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']
2025-04-22 20:24:01,632 - INFO - VN ctest-vn-98105606 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 20:24:01,632 - DEBUG - Verifying the vn in opserver
2025-04-22 20:24:01,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606 virtual network link through opserver 10.0.0.249
2025-04-22 20:24:01,632 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-22 20:24:01,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606?flat'}
2025-04-22 20:24:01,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606 is found in opserver
2025-04-22 20:24:01,650 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 20:24:01,654 - DEBUG - VRF ids for VN ctest-vn-98105606: {}
2025-04-22 20:24:01,702 - DEBUG - Services list from nova: [