2025-04-22 15:46:20,231 - INFO - Domain Default found not creating
2025-04-22 15:46:20,359 - INFO - Project ctest-TestBasicPolicy-84269248 not found, creating it
2025-04-22 15:46:20,790 - INFO - Created Project:ctest-TestBasicPolicy-84269248, ID : 264941a3-7136-42cd-990a-fc624c9a093e
2025-04-22 15:46:22,171 - INFO - ================================================================================
2025-04-22 15:46:22,171 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 15:46:22,171 - 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 15:46:22,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-22 15:46:22,433 - INFO - Initial checks done. Running the testcase now
2025-04-22 15:46:22,433 - INFO -
2025-04-22 15:46:22,959 - DEBUG - Response for create_network : {'network': {'id': '0f2861db-1081-446a-a972-4674a4d2859d', 'name': 'ctest-vn-83523229', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'project_id': '264941a3713642cd990afc624c9a093e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-vn-83523229'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 15:46:23,154 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3629af5-6cc9-420e-a4bb-67a5798bf8db', 'name': '', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'network_id': '0f2861db-1081-446a-a972-4674a4d2859d', 'ip_version': 4, 'cidr': '178.30.232.64/26', 'allocation_pools': [{'start': '178.30.232.66', 'end': '178.30.232.126'}], 'gateway_ip': '178.30.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.30.232.66', 'tags': [], 'project_id': '264941a3713642cd990afc624c9a093e'}}
2025-04-22 15:46:23,170 - INFO - Created VN ctest-vn-83523229
2025-04-22 15:46:23,220 - DEBUG - VN ctest-vn-83523229 UUID is 0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:23,538 - DEBUG - Response for create_network : {'network': {'id': 'b32847f4-5311-45f1-856a-ca4415923c6d', 'name': 'ctest-vn-02426616', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'project_id': '264941a3713642cd990afc624c9a093e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-vn-02426616'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 15:46:23,690 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b41ff65-a6d3-4014-99f6-245e9248b0b6', 'name': '', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'network_id': 'b32847f4-5311-45f1-856a-ca4415923c6d', 'ip_version': 4, 'cidr': '95.133.154.0/26', 'allocation_pools': [{'start': '95.133.154.2', 'end': '95.133.154.62'}], 'gateway_ip': '95.133.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.133.154.2', 'tags': [], 'project_id': '264941a3713642cd990afc624c9a093e'}}
2025-04-22 15:46:23,707 - INFO - Created VN ctest-vn-02426616
2025-04-22 15:46:23,760 - DEBUG - VN ctest-vn-02426616 UUID is b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:23,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229, 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-84269248:ctest-vn-02426616, 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 15:46:24,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f2861db-1081-446a-a972-4674a4d2859d', 'name': 'ctest-vn-83523229', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'project_id': '264941a3713642cd990afc624c9a093e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3629af5-6cc9-420e-a4bb-67a5798bf8db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-vn-83523229'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-policy-allow-all-74392146']], 'subnet_ipam': [{'subnet_cidr': '178.30.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 15:46:24,449 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b32847f4-5311-45f1-856a-ca4415923c6d', 'name': 'ctest-vn-02426616', 'tenant_id': '264941a3713642cd990afc624c9a093e', 'project_id': '264941a3713642cd990afc624c9a093e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b41ff65-a6d3-4014-99f6-245e9248b0b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-vn-02426616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-policy-allow-all-74392146']], 'subnet_ipam': [{'subnet_cidr': '95.133.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 15:46:24,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-22 15:46:24,915 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-22 15:46:24,942 - DEBUG - Requesting: http://10.0.0.38:8082/domain/968729ae-3dae-474c-be26-05638ad7155f
2025-04-22 15:46:24,956 - DEBUG - Requesting: http://10.0.0.38:8082/project/264941a3-7136-42cd-990a-fc624c9a093e
2025-04-22 15:46:25,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,048 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b284439-5512-42e1-ae4b-52705bb07f65
2025-04-22 15:46:25,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b284439-5512-42e1-ae4b-52705bb07f65
2025-04-22 15:46:25,061 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3fd2114-97a1-488d-ad09-08c3d5d635c8
2025-04-22 15:46:25,067 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 15:46:25,067 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b284439-5512-42e1-ae4b-52705bb07f65
2025-04-22 15:46:25,087 - INFO - Verified VN network id 8 for VN 0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,087 - INFO - Verifications in API Server for VN ctest-vn-83523229 passed
2025-04-22 15:46:25,087 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b284439-5512-42e1-ae4b-52705bb07f65
2025-04-22 15:46:25,102 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b284439-5512-42e1-ae4b-52705bb07f65
2025-04-22 15:46:25,108 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3fd2114-97a1-488d-ad09-08c3d5d635c8
2025-04-22 15:46:25,118 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84269248', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1092230503139984490', 'uuid-lslong': '12209899006550246813'}, 'enable': 'true', 'created': '2025-04-22T15:46:22', 'last-modified': '2025-04-22T15:46:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917803'}
2025-04-22 15:46:25,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 15:46:25,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83523229 passed
2025-04-22 15:46:25,125 - DEBUG - ====Verifying policy data for ctest-vn-83523229 in API_Server ======
2025-04-22 15:46:25,125 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-22 15:46:25,130 - DEBUG - Requesting: http://10.0.0.38:8082/domain/968729ae-3dae-474c-be26-05638ad7155f
2025-04-22 15:46:25,141 - DEBUG - Requesting: http://10.0.0.38:8082/project/264941a3-7136-42cd-990a-fc624c9a093e
2025-04-22 15:46:25,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f2861db-1081-446a-a972-4674a4d2859d
2025-04-22 15:46:25,218 - DEBUG - ==>Verifying data for policy with id: 31647bcf-1eb9-4d0a-aac8-68e2256ec7b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-policy-allow-all-74392146']
2025-04-22 15:46:25,218 - INFO - VN ctest-vn-83523229 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 15:46:25,218 - DEBUG - Verifying the vn in opserver
2025-04-22 15:46:25,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229 virtual network link through opserver 10.0.0.38
2025-04-22 15:46:25,219 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-22 15:46:25,508 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-22 15:46:25,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229?flat'}
2025-04-22 15:46:25,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-83523229 is found in opserver
2025-04-22 15:46:25,569 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 15:46:25,575 - DEBUG - VRF ids for VN ctest-vn-83523229: {}
2025-04-22 15:46:25,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-22 15:46:25,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/968729ae-3dae-474c-be26-05638ad7155f
2025-04-22 15:46:25,594 - DEBUG - Requesting: http://10.0.0.38:8082/project/264941a3-7136-42cd-990a-fc624c9a093e
2025-04-22 15:46:25,666 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,678 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b82a6f-7e11-4a47-b118-bb2a0031aaab
2025-04-22 15:46:25,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b82a6f-7e11-4a47-b118-bb2a0031aaab
2025-04-22 15:46:25,703 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/822e52e2-415e-4d4c-8ac0-33027867920d
2025-04-22 15:46:25,710 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 15:46:25,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,719 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b82a6f-7e11-4a47-b118-bb2a0031aaab
2025-04-22 15:46:25,732 - INFO - Verified VN network id 9 for VN b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,732 - INFO - Verifications in API Server for VN ctest-vn-02426616 passed
2025-04-22 15:46:25,732 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,741 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b82a6f-7e11-4a47-b118-bb2a0031aaab
2025-04-22 15:46:25,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b82a6f-7e11-4a47-b118-bb2a0031aaab
2025-04-22 15:46:25,755 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/822e52e2-415e-4d4c-8ac0-33027867920d
2025-04-22 15:46:25,768 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-02426616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84269248', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12909647446548760049', 'uuid-lslong': '9613718748344237165'}, 'enable': 'true', 'created': '2025-04-22T15:46:23', 'last-modified': '2025-04-22T15:46:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.342665'}
2025-04-22 15:46:25,774 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 15:46:25,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02426616 passed
2025-04-22 15:46:25,774 - DEBUG - ====Verifying policy data for ctest-vn-02426616 in API_Server ======
2025-04-22 15:46:25,774 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-22 15:46:25,780 - DEBUG - Requesting: http://10.0.0.38:8082/domain/968729ae-3dae-474c-be26-05638ad7155f
2025-04-22 15:46:25,791 - DEBUG - Requesting: http://10.0.0.38:8082/project/264941a3-7136-42cd-990a-fc624c9a093e
2025-04-22 15:46:25,863 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32847f4-5311-45f1-856a-ca4415923c6d
2025-04-22 15:46:25,874 - DEBUG - ==>Verifying data for policy with id: 31647bcf-1eb9-4d0a-aac8-68e2256ec7b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-84269248', 'ctest-policy-allow-all-74392146']
2025-04-22 15:46:25,874 - INFO - VN ctest-vn-02426616 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 15:46:25,874 - DEBUG - Verifying the vn in opserver
2025-04-22 15:46:25,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-02426616 virtual network link through opserver 10.0.0.38
2025-04-22 15:46:25,874 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-22 15:46:25,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-02426616', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-02426616?flat'}
2025-04-22 15:46:25,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84269248:ctest-vn-02426616 is found in opserver
2025-04-22 15:46:25,895 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 15:46:25,900 - DEBUG - VRF ids for VN ctest-vn-02426616: {}
2025-04-22 15:46:25,953 - DEBUG - Services list from nova: [