2025-04-15 13:13:46,186 - INFO - Domain Default found not creating
2025-04-15 13:13:46,350 - INFO - Project ctest-TestBasicPolicy-99329287 not found, creating it
2025-04-15 13:13:46,862 - INFO - Created Project:ctest-TestBasicPolicy-99329287, ID : 5ee06581-9128-4417-af6c-864697515451
2025-04-15 13:13:48,367 - INFO - ================================================================================
2025-04-15 13:13:48,367 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 13:13:48,367 - 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-15 13:13:48,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-15 13:13:48,636 - INFO - Initial checks done. Running the testcase now
2025-04-15 13:13:48,636 - INFO -
2025-04-15 13:13:49,208 - DEBUG - Response for create_network : {'network': {'id': 'f8d81e12-7222-4c06-bb77-71e27df42f04', 'name': 'ctest-vn-39967818', 'tenant_id': '5ee0658191284417af6c864697515451', 'project_id': '5ee0658191284417af6c864697515451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-vn-39967818'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 13:13:49,432 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f81bd35c-0bb0-4107-a5bc-ef5deb454647', 'name': '', 'tenant_id': '5ee0658191284417af6c864697515451', 'network_id': 'f8d81e12-7222-4c06-bb77-71e27df42f04', 'ip_version': 4, 'cidr': '154.238.241.0/26', 'allocation_pools': [{'start': '154.238.241.2', 'end': '154.238.241.62'}], 'gateway_ip': '154.238.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.238.241.2', 'tags': [], 'project_id': '5ee0658191284417af6c864697515451'}}
2025-04-15 13:13:49,451 - INFO - Created VN ctest-vn-39967818
2025-04-15 13:13:49,510 - DEBUG - VN ctest-vn-39967818 UUID is f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:49,833 - DEBUG - Response for create_network : {'network': {'id': 'e439255b-7bf1-48c8-9ceb-c21b523ed7b6', 'name': 'ctest-vn-52412472', 'tenant_id': '5ee0658191284417af6c864697515451', 'project_id': '5ee0658191284417af6c864697515451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-vn-52412472'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 13:13:50,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a6e9d6a-691e-462f-86c5-141c032340d0', 'name': '', 'tenant_id': '5ee0658191284417af6c864697515451', 'network_id': 'e439255b-7bf1-48c8-9ceb-c21b523ed7b6', 'ip_version': 4, 'cidr': '65.72.124.64/26', 'allocation_pools': [{'start': '65.72.124.66', 'end': '65.72.124.126'}], 'gateway_ip': '65.72.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.72.124.66', 'tags': [], 'project_id': '5ee0658191284417af6c864697515451'}}
2025-04-15 13:13:50,042 - INFO - Created VN ctest-vn-52412472
2025-04-15 13:13:50,098 - DEBUG - VN ctest-vn-52412472 UUID is e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:50,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818, 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-99329287:ctest-vn-52412472, 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-15 13:13:50,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8d81e12-7222-4c06-bb77-71e27df42f04', 'name': 'ctest-vn-39967818', 'tenant_id': '5ee0658191284417af6c864697515451', 'project_id': '5ee0658191284417af6c864697515451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f81bd35c-0bb0-4107-a5bc-ef5deb454647'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-vn-39967818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-policy-allow-all-87919439']], 'subnet_ipam': [{'subnet_cidr': '154.238.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 13:13:50,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e439255b-7bf1-48c8-9ceb-c21b523ed7b6', 'name': 'ctest-vn-52412472', 'tenant_id': '5ee0658191284417af6c864697515451', 'project_id': '5ee0658191284417af6c864697515451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a6e9d6a-691e-462f-86c5-141c032340d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-vn-52412472'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-policy-allow-all-87919439']], 'subnet_ipam': [{'subnet_cidr': '65.72.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 13:13:50,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-15 13:13:51,301 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-15 13:13:51,337 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd56a7e3-f979-4944-bd6e-79bf441fa300
2025-04-15 13:13:51,352 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ee06581-9128-4417-af6c-864697515451
2025-04-15 13:13:51,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,456 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,470 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ea35b0f-0ad6-4f64-9cbc-cbc754c7cc11
2025-04-15 13:13:51,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ea35b0f-0ad6-4f64-9cbc-cbc754c7cc11
2025-04-15 13:13:51,492 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46315391-c2c6-4be7-bf79-0c0064e44cba
2025-04-15 13:13:51,501 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 13:13:51,501 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,513 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ea35b0f-0ad6-4f64-9cbc-cbc754c7cc11
2025-04-15 13:13:51,533 - INFO - Verified VN network id 8 for VN f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,534 - INFO - Verifications in API Server for VN ctest-vn-39967818 passed
2025-04-15 13:13:51,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,547 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ea35b0f-0ad6-4f64-9cbc-cbc754c7cc11
2025-04-15 13:13:51,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ea35b0f-0ad6-4f64-9cbc-cbc754c7cc11
2025-04-15 13:13:51,565 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46315391-c2c6-4be7-bf79-0c0064e44cba
2025-04-15 13:13:51,580 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99329287', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17931114980948724742', 'uuid-lslong': '13508390824910794500'}, 'enable': 'true', 'created': '2025-04-15T13:13:49', 'last-modified': '2025-04-15T13:13:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066898'}
2025-04-15 13:13:51,588 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 13:13:51,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39967818 passed
2025-04-15 13:13:51,588 - DEBUG - ====Verifying policy data for ctest-vn-39967818 in API_Server ======
2025-04-15 13:13:51,588 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-15 13:13:51,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd56a7e3-f979-4944-bd6e-79bf441fa300
2025-04-15 13:13:51,612 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ee06581-9128-4417-af6c-864697515451
2025-04-15 13:13:51,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8d81e12-7222-4c06-bb77-71e27df42f04
2025-04-15 13:13:51,704 - DEBUG - ==>Verifying data for policy with id: fc0dd536-3cb0-4266-9343-e6304a38b204, fqn: ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-policy-allow-all-87919439']
2025-04-15 13:13:51,704 - INFO - VN ctest-vn-39967818 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 13:13:51,704 - DEBUG - Verifying the vn in opserver
2025-04-15 13:13:51,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818 virtual network link through opserver 10.0.0.38
2025-04-15 13:13:51,704 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-15 13:13:52,002 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-15 13:13:52,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818?flat'}
2025-04-15 13:13:52,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-39967818 is found in opserver
2025-04-15 13:13:52,088 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 13:13:52,094 - DEBUG - VRF ids for VN ctest-vn-39967818: {}
2025-04-15 13:13:52,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-15 13:13:52,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd56a7e3-f979-4944-bd6e-79bf441fa300
2025-04-15 13:13:52,113 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ee06581-9128-4417-af6c-864697515451
2025-04-15 13:13:52,187 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,210 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50498cb4-b04a-4b71-b3bf-448787a63145
2025-04-15 13:13:52,219 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50498cb4-b04a-4b71-b3bf-448787a63145
2025-04-15 13:13:52,226 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/66f2d784-95eb-4a98-b9af-7467fbf01196
2025-04-15 13:13:52,235 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 13:13:52,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50498cb4-b04a-4b71-b3bf-448787a63145
2025-04-15 13:13:52,263 - INFO - Verified VN network id 9 for VN e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,263 - INFO - Verifications in API Server for VN ctest-vn-52412472 passed
2025-04-15 13:13:52,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50498cb4-b04a-4b71-b3bf-448787a63145
2025-04-15 13:13:52,284 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50498cb4-b04a-4b71-b3bf-448787a63145
2025-04-15 13:13:52,295 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/66f2d784-95eb-4a98-b9af-7467fbf01196
2025-04-15 13:13:52,314 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-52412472', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99329287', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16445216589171738824', 'uuid-lslong': '11307344712043517878'}, 'enable': 'true', 'created': '2025-04-15T13:13:49', 'last-modified': '2025-04-15T13:13:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544246'}
2025-04-15 13:13:52,323 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 13:13:52,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52412472 passed
2025-04-15 13:13:52,323 - DEBUG - ====Verifying policy data for ctest-vn-52412472 in API_Server ======
2025-04-15 13:13:52,323 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-15 13:13:52,331 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd56a7e3-f979-4944-bd6e-79bf441fa300
2025-04-15 13:13:52,345 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ee06581-9128-4417-af6c-864697515451
2025-04-15 13:13:52,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e439255b-7bf1-48c8-9ceb-c21b523ed7b6
2025-04-15 13:13:52,431 - DEBUG - ==>Verifying data for policy with id: fc0dd536-3cb0-4266-9343-e6304a38b204, fqn: ['default-domain', 'ctest-TestBasicPolicy-99329287', 'ctest-policy-allow-all-87919439']
2025-04-15 13:13:52,431 - INFO - VN ctest-vn-52412472 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 13:13:52,432 - DEBUG - Verifying the vn in opserver
2025-04-15 13:13:52,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-52412472 virtual network link through opserver 10.0.0.38
2025-04-15 13:13:52,432 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-15 13:13:52,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-52412472', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-52412472?flat'}
2025-04-15 13:13:52,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99329287:ctest-vn-52412472 is found in opserver
2025-04-15 13:13:52,460 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 13:13:52,467 - DEBUG - VRF ids for VN ctest-vn-52412472: {}
2025-04-15 13:13:52,528 - DEBUG - Services list from nova: [