2025-07-21 14:22:01,376 - INFO - Domain Default found not creating
2025-07-21 14:22:01,709 - INFO - Project ctest-TestBasicPolicy-90698021 not found, creating it
2025-07-21 14:22:02,411 - INFO - Created Project:ctest-TestBasicPolicy-90698021, ID : d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5
2025-07-21 14:22:04,690 - INFO - ================================================================================
2025-07-21 14:22:04,691 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 14:22:04,691 - 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-07-21 14:22:05,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-07-21 14:22:05,019 - INFO - Initial checks done. Running the testcase now
2025-07-21 14:22:05,019 - INFO -
2025-07-21 14:22:05,898 - DEBUG - Response for create_network : {'network': {'id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'name': 'ctest-vn-98747829', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-98747829'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 14:22:06,117 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6f494f8-cb85-41b1-a7cd-34affb938350', 'name': '', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'network_id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'ip_version': 4, 'cidr': '148.101.0.192/26', 'allocation_pools': [{'start': '148.101.0.194', 'end': '148.101.0.254'}], 'gateway_ip': '148.101.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.101.0.194', 'tags': [], 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5'}}
2025-07-21 14:22:06,142 - INFO - Created VN ctest-vn-98747829
2025-07-21 14:22:06,202 - DEBUG - VN ctest-vn-98747829 UUID is 9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:06,625 - DEBUG - Response for create_network : {'network': {'id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'name': 'ctest-vn-44498821', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-44498821'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 14:22:06,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c2dc5c9-7332-4bbf-9bbd-5f053880b5cd', 'name': '', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'network_id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'ip_version': 4, 'cidr': '184.53.243.0/26', 'allocation_pools': [{'start': '184.53.243.2', 'end': '184.53.243.62'}], 'gateway_ip': '184.53.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.53.243.2', 'tags': [], 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5'}}
2025-07-21 14:22:06,840 - INFO - Created VN ctest-vn-44498821
2025-07-21 14:22:06,894 - DEBUG - VN ctest-vn-44498821 UUID is b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:07,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829, 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-90698021:ctest-vn-44498821, 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-07-21 14:22:07,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'name': 'ctest-vn-98747829', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6f494f8-cb85-41b1-a7cd-34affb938350'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-98747829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']], 'subnet_ipam': [{'subnet_cidr': '148.101.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 14:22:07,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'name': 'ctest-vn-44498821', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c2dc5c9-7332-4bbf-9bbd-5f053880b5cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-44498821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']], 'subnet_ipam': [{'subnet_cidr': '184.53.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 14:22:08,163 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 14:22:08,504 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 14:22:08,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0
2025-07-21 14:22:08,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5
2025-07-21 14:22:08,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:08,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:08,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a
2025-07-21 14:22:08,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a
2025-07-21 14:22:08,828 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fed7297d-1113-423b-964c-4d2f1909eade
2025-07-21 14:22:08,847 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 14:22:08,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:08,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a
2025-07-21 14:22:08,921 - INFO - Verified VN network id 8 for VN 9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:08,921 - INFO - Verifications in API Server for VN ctest-vn-98747829 passed
2025-07-21 14:22:08,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:08,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a
2025-07-21 14:22:08,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a
2025-07-21 14:22:08,979 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fed7297d-1113-423b-964c-4d2f1909eade
2025-07-21 14:22:09,011 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90698021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11207934677764819090', 'uuid-lslong': '10400175298649465977'}, 'enable': 'true', 'created': '2025-07-21T14:22:05', 'last-modified': '2025-07-21T14:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440250'}
2025-07-21 14:22:09,025 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 14:22:09,025 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98747829 passed
2025-07-21 14:22:09,026 - DEBUG - ====Verifying policy data for ctest-vn-98747829 in API_Server ======
2025-07-21 14:22:09,026 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 14:22:09,037 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0
2025-07-21 14:22:09,061 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5
2025-07-21 14:22:09,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479
2025-07-21 14:22:09,196 - DEBUG - ==>Verifying data for policy with id: d22ede57-96e4-43d1-a4e7-e8fede84908b, fqn: ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']
2025-07-21 14:22:09,196 - INFO - VN ctest-vn-98747829 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 14:22:09,196 - DEBUG - Verifying the vn in opserver
2025-07-21 14:22:09,196 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829 virtual network link through opserver 10.0.0.38
2025-07-21 14:22:09,197 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 14:22:09,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 14:22:09,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829?flat'}
2025-07-21 14:22:09,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829 is found in opserver
2025-07-21 14:22:09,641 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 14:22:09,652 - DEBUG - VRF ids for VN ctest-vn-98747829: {}
2025-07-21 14:22:09,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 14:22:09,662 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0
2025-07-21 14:22:09,683 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5
2025-07-21 14:22:09,775 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:09,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:09,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd
2025-07-21 14:22:09,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd
2025-07-21 14:22:09,826 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35dd141e-7fb0-4f86-b782-fee615a74bca
2025-07-21 14:22:09,837 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 14:22:09,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:09,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd
2025-07-21 14:22:09,881 - INFO - Verified VN network id 9 for VN b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:09,881 - INFO - Verifications in API Server for VN ctest-vn-44498821 passed
2025-07-21 14:22:09,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:09,895 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd
2025-07-21 14:22:09,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd
2025-07-21 14:22:09,916 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35dd141e-7fb0-4f86-b782-fee615a74bca
2025-07-21 14:22:09,935 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90698021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13169725188927866916', 'uuid-lslong': '11303750419743370832'}, 'enable': 'true', 'created': '2025-07-21T14:22:06', 'last-modified': '2025-07-21T14:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.002166'}
2025-07-21 14:22:09,944 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 14:22:09,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44498821 passed
2025-07-21 14:22:09,944 - DEBUG - ====Verifying policy data for ctest-vn-44498821 in API_Server ======
2025-07-21 14:22:09,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 14:22:09,956 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0
2025-07-21 14:22:09,976 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5
2025-07-21 14:22:10,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50
2025-07-21 14:22:10,080 - DEBUG - ==>Verifying data for policy with id: d22ede57-96e4-43d1-a4e7-e8fede84908b, fqn: ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']
2025-07-21 14:22:10,080 - INFO - VN ctest-vn-44498821 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 14:22:10,080 - DEBUG - Verifying the vn in opserver
2025-07-21 14:22:10,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821 virtual network link through opserver 10.0.0.38
2025-07-21 14:22:10,080 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 14:22:10,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821?flat'}
2025-07-21 14:22:10,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821 is found in opserver
2025-07-21 14:22:10,118 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 14:22:10,125 - DEBUG - VRF ids for VN ctest-vn-44498821: {}
2025-07-21 14:22:10,220 - DEBUG - Services list from nova: [