2025-06-20 09:40:51,109 - INFO - Domain Default found not creating
2025-06-20 09:40:51,244 - INFO - Project ctest-TestBasicPolicy-04122906 not found, creating it
2025-06-20 09:40:51,685 - INFO - Created Project:ctest-TestBasicPolicy-04122906, ID : 1c624ee5-78d3-40e9-962d-269fff1687b6
2025-06-20 09:40:53,071 - INFO - ================================================================================
2025-06-20 09:40:53,071 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 09:40:53,072 - 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-06-20 09:40:53,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-06-20 09:40:53,325 - INFO - Initial checks done. Running the testcase now
2025-06-20 09:40:53,325 - INFO -
2025-06-20 09:40:53,872 - DEBUG - Response for create_network : {'network': {'id': 'dd39c982-b42f-4851-a22c-9567f53b4710', 'name': 'ctest-vn-16382259', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'project_id': '1c624ee578d340e9962d269fff1687b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-vn-16382259'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 09:40:54,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '97fb267c-bf85-4746-a2b0-26f1da2b9988', 'name': '', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'network_id': 'dd39c982-b42f-4851-a22c-9567f53b4710', 'ip_version': 4, 'cidr': '77.237.155.192/26', 'allocation_pools': [{'start': '77.237.155.194', 'end': '77.237.155.254'}], 'gateway_ip': '77.237.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.237.155.194', 'tags': [], 'project_id': '1c624ee578d340e9962d269fff1687b6'}}
2025-06-20 09:40:54,067 - INFO - Created VN ctest-vn-16382259
2025-06-20 09:40:54,120 - DEBUG - VN ctest-vn-16382259 UUID is dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:54,399 - DEBUG - Response for create_network : {'network': {'id': '19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8', 'name': 'ctest-vn-52074734', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'project_id': '1c624ee578d340e9962d269fff1687b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-vn-52074734'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 09:40:54,630 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a858daad-2a6e-49f7-93de-2831b6aba5d2', 'name': '', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'network_id': '19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8', 'ip_version': 4, 'cidr': '180.251.51.64/26', 'allocation_pools': [{'start': '180.251.51.66', 'end': '180.251.51.126'}], 'gateway_ip': '180.251.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.251.51.66', 'tags': [], 'project_id': '1c624ee578d340e9962d269fff1687b6'}}
2025-06-20 09:40:54,646 - INFO - Created VN ctest-vn-52074734
2025-06-20 09:40:54,700 - DEBUG - VN ctest-vn-52074734 UUID is 19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:54,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259, 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-04122906:ctest-vn-52074734, 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-06-20 09:40:55,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd39c982-b42f-4851-a22c-9567f53b4710', 'name': 'ctest-vn-16382259', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'project_id': '1c624ee578d340e9962d269fff1687b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97fb267c-bf85-4746-a2b0-26f1da2b9988'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-vn-16382259'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-policy-allow-all-10979584']], 'subnet_ipam': [{'subnet_cidr': '77.237.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 09:40:55,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8', 'name': 'ctest-vn-52074734', 'tenant_id': '1c624ee578d340e9962d269fff1687b6', 'project_id': '1c624ee578d340e9962d269fff1687b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a858daad-2a6e-49f7-93de-2831b6aba5d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-vn-52074734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-policy-allow-all-10979584']], 'subnet_ipam': [{'subnet_cidr': '180.251.51.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 09:40:55,520 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 09:40:55,814 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 09:40:55,840 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7001c0bb-9f45-4d3b-bbd6-19b4867ea690
2025-06-20 09:40:55,851 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c624ee5-78d3-40e9-962d-269fff1687b6
2025-06-20 09:40:55,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:55,936 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:55,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dac8c6b-7332-45b4-82e6-dc994826909b
2025-06-20 09:40:55,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dac8c6b-7332-45b4-82e6-dc994826909b
2025-06-20 09:40:55,957 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dc556f3-8249-4e46-9285-2b2701f1c4b3
2025-06-20 09:40:55,963 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 09:40:55,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:55,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dac8c6b-7332-45b4-82e6-dc994826909b
2025-06-20 09:40:55,990 - INFO - Verified VN network id 9 for VN dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:55,990 - INFO - Verifications in API Server for VN ctest-vn-16382259 passed
2025-06-20 09:40:55,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:55,999 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dac8c6b-7332-45b4-82e6-dc994826909b
2025-06-20 09:40:56,007 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dac8c6b-7332-45b4-82e6-dc994826909b
2025-06-20 09:40:56,015 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dc556f3-8249-4e46-9285-2b2701f1c4b3
2025-06-20 09:40:56,028 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04122906', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15940993919260510289', 'uuid-lslong': '11685879406848067344'}, 'enable': 'true', 'created': '2025-06-20T09:40:53', 'last-modified': '2025-06-20T09:40:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941597'}
2025-06-20 09:40:56,035 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 09:40:56,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16382259 passed
2025-06-20 09:40:56,035 - DEBUG - ====Verifying policy data for ctest-vn-16382259 in API_Server ======
2025-06-20 09:40:56,035 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 09:40:56,040 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7001c0bb-9f45-4d3b-bbd6-19b4867ea690
2025-06-20 09:40:56,051 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c624ee5-78d3-40e9-962d-269fff1687b6
2025-06-20 09:40:56,125 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd39c982-b42f-4851-a22c-9567f53b4710
2025-06-20 09:40:56,135 - DEBUG - ==>Verifying data for policy with id: c0108c15-a183-470e-adca-45a8568f0975, fqn: ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-policy-allow-all-10979584']
2025-06-20 09:40:56,135 - INFO - VN ctest-vn-16382259 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 09:40:56,135 - DEBUG - Verifying the vn in opserver
2025-06-20 09:40:56,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259 virtual network link through opserver 10.0.0.38
2025-06-20 09:40:56,136 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 09:40:56,425 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 09:40:56,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259?flat'}
2025-06-20 09:40:56,476 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-16382259 is found in opserver
2025-06-20 09:40:56,485 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 09:40:56,489 - DEBUG - VRF ids for VN ctest-vn-16382259: {}
2025-06-20 09:40:56,489 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 09:40:56,494 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7001c0bb-9f45-4d3b-bbd6-19b4867ea690
2025-06-20 09:40:56,505 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c624ee5-78d3-40e9-962d-269fff1687b6
2025-06-20 09:40:56,627 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,638 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6882b0a-e7c3-4202-98e5-b2908b8d5d2f
2025-06-20 09:40:56,656 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6882b0a-e7c3-4202-98e5-b2908b8d5d2f
2025-06-20 09:40:56,663 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7008d7f-fee5-4966-9799-e8c1d429b8a3
2025-06-20 09:40:56,670 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 09:40:56,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6882b0a-e7c3-4202-98e5-b2908b8d5d2f
2025-06-20 09:40:56,694 - INFO - Verified VN network id 10 for VN 19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,694 - INFO - Verifications in API Server for VN ctest-vn-52074734 passed
2025-06-20 09:40:56,694 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6882b0a-e7c3-4202-98e5-b2908b8d5d2f
2025-06-20 09:40:56,713 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6882b0a-e7c3-4202-98e5-b2908b8d5d2f
2025-06-20 09:40:56,721 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7008d7f-fee5-4966-9799-e8c1d429b8a3
2025-06-20 09:40:56,734 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-52074734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04122906', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1852637131385163329', 'uuid-lslong': '11305831479693222648'}, 'enable': 'true', 'created': '2025-06-20T09:40:54', 'last-modified': '2025-06-20T09:40:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423229'}
2025-06-20 09:40:56,740 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 09:40:56,740 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52074734 passed
2025-06-20 09:40:56,740 - DEBUG - ====Verifying policy data for ctest-vn-52074734 in API_Server ======
2025-06-20 09:40:56,740 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 09:40:56,747 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7001c0bb-9f45-4d3b-bbd6-19b4867ea690
2025-06-20 09:40:56,757 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c624ee5-78d3-40e9-962d-269fff1687b6
2025-06-20 09:40:56,823 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19b5e3a7-c1e9-4e41-9ce6-61d4758b22f8
2025-06-20 09:40:56,831 - DEBUG - ==>Verifying data for policy with id: c0108c15-a183-470e-adca-45a8568f0975, fqn: ['default-domain', 'ctest-TestBasicPolicy-04122906', 'ctest-policy-allow-all-10979584']
2025-06-20 09:40:56,831 - INFO - VN ctest-vn-52074734 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 09:40:56,831 - DEBUG - Verifying the vn in opserver
2025-06-20 09:40:56,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-52074734 virtual network link through opserver 10.0.0.38
2025-06-20 09:40:56,831 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 09:40:56,841 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-52074734', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-52074734?flat'}
2025-06-20 09:40:56,841 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04122906:ctest-vn-52074734 is found in opserver
2025-06-20 09:40:56,852 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 09:40:56,856 - DEBUG - VRF ids for VN ctest-vn-52074734: {}
2025-06-20 09:40:56,914 - DEBUG - Services list from nova: [