2025-03-28 23:24:57,680 - INFO - Domain Default found not creating
2025-03-28 23:24:57,922 - INFO - Project ctest-TestBasicPolicy-63966343 not found, creating it
2025-03-28 23:24:58,871 - INFO - Created Project:ctest-TestBasicPolicy-63966343, ID : e46837d8-ea8b-4ce6-9fa4-495b886dc59f
2025-03-28 23:25:00,527 - INFO - ================================================================================
2025-03-28 23:25:00,528 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 23:25:00,528 - 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-03-28 23:25:00,799 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.19': '0'}} with
2025-03-28 23:25:00,799 - INFO - Initial checks done. Running the testcase now
2025-03-28 23:25:00,800 - INFO -
2025-03-28 23:25:01,479 - DEBUG - Response for create_network : {'network': {'id': 'bfcef477-bee0-4046-83b0-731dc62300c4', 'name': 'ctest-vn-02714002', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-vn-02714002'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 23:25:01,718 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fa4d040-fd0d-43e3-a389-f3d28786f243', 'name': '', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'network_id': 'bfcef477-bee0-4046-83b0-731dc62300c4', 'ip_version': 4, 'cidr': '195.96.117.128/26', 'allocation_pools': [{'start': '195.96.117.130', 'end': '195.96.117.190'}], 'gateway_ip': '195.96.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.96.117.130', 'tags': [], 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f'}}
2025-03-28 23:25:01,745 - INFO - Created VN ctest-vn-02714002
2025-03-28 23:25:01,804 - DEBUG - VN ctest-vn-02714002 UUID is bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:02,164 - DEBUG - Response for create_network : {'network': {'id': '492d41a9-3a05-4c21-b411-45c47a5aba40', 'name': 'ctest-vn-49961790', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-vn-49961790'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 23:25:02,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ba6fea1-6e4c-4c44-bc3d-7fc87d74b4da', 'name': '', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'network_id': '492d41a9-3a05-4c21-b411-45c47a5aba40', 'ip_version': 4, 'cidr': '137.126.68.64/26', 'allocation_pools': [{'start': '137.126.68.66', 'end': '137.126.68.126'}], 'gateway_ip': '137.126.68.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.126.68.66', 'tags': [], 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f'}}
2025-03-28 23:25:02,373 - INFO - Created VN ctest-vn-49961790
2025-03-28 23:25:02,432 - DEBUG - VN ctest-vn-49961790 UUID is 492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:02,566 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002, 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-63966343:ctest-vn-49961790, 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-03-28 23:25:02,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfcef477-bee0-4046-83b0-731dc62300c4', 'name': 'ctest-vn-02714002', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fa4d040-fd0d-43e3-a389-f3d28786f243'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-vn-02714002'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-policy-allow-all-87881504']], 'subnet_ipam': [{'subnet_cidr': '195.96.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 23:25:03,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '492d41a9-3a05-4c21-b411-45c47a5aba40', 'name': 'ctest-vn-49961790', 'tenant_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'project_id': 'e46837d8ea8b4ce69fa4495b886dc59f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ba6fea1-6e4c-4c44-bc3d-7fc87d74b4da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-vn-49961790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-policy-allow-all-87881504']], 'subnet_ipam': [{'subnet_cidr': '137.126.68.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 23:25:03,340 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 23:25:03,773 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 23:25:03,825 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1e9b52d8-c5e1-432a-8236-308be47ae43f
2025-03-28 23:25:03,843 - DEBUG - Requesting: http://10.0.0.24:8082/project/e46837d8-ea8b-4ce6-9fa4-495b886dc59f
2025-03-28 23:25:03,937 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:03,955 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:03,971 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4b10f329-6a8e-49a1-b39f-9a92f3d06740
2025-03-28 23:25:03,980 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4b10f329-6a8e-49a1-b39f-9a92f3d06740
2025-03-28 23:25:03,992 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/7f3ea433-5408-4dab-9af4-132e5a69d2f9
2025-03-28 23:25:04,004 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 23:25:04,004 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:04,017 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4b10f329-6a8e-49a1-b39f-9a92f3d06740
2025-03-28 23:25:04,037 - INFO - Verified VN network id 8 for VN bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:04,037 - INFO - Verifications in API Server for VN ctest-vn-02714002 passed
2025-03-28 23:25:04,037 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:04,050 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4b10f329-6a8e-49a1-b39f-9a92f3d06740
2025-03-28 23:25:04,061 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4b10f329-6a8e-49a1-b39f-9a92f3d06740
2025-03-28 23:25:04,071 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/7f3ea433-5408-4dab-9af4-132e5a69d2f9
2025-03-28 23:25:04,089 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63966343', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13821253101587284038', 'uuid-lslong': '9489210986585063620'}, 'enable': 'true', 'created': '2025-03-28T23:25:01', 'last-modified': '2025-03-28T23:25:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.221606'}
2025-03-28 23:25:04,098 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 23:25:04,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02714002 passed
2025-03-28 23:25:04,099 - DEBUG - ====Verifying policy data for ctest-vn-02714002 in API_Server ======
2025-03-28 23:25:04,099 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 23:25:04,110 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1e9b52d8-c5e1-432a-8236-308be47ae43f
2025-03-28 23:25:04,131 - DEBUG - Requesting: http://10.0.0.24:8082/project/e46837d8-ea8b-4ce6-9fa4-495b886dc59f
2025-03-28 23:25:04,223 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcef477-bee0-4046-83b0-731dc62300c4
2025-03-28 23:25:04,240 - DEBUG - ==>Verifying data for policy with id: 6ca076a8-7c90-4772-93d6-1ca26ff335bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-policy-allow-all-87881504']
2025-03-28 23:25:04,240 - INFO - VN ctest-vn-02714002 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 23:25:04,240 - DEBUG - Verifying the vn in opserver
2025-03-28 23:25:04,240 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002 virtual network link through opserver 10.0.0.24
2025-03-28 23:25:04,240 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 23:25:04,556 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 23:25:04,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002?flat'}
2025-03-28 23:25:04,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-02714002 is found in opserver
2025-03-28 23:25:04,649 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 23:25:04,655 - DEBUG - VRF ids for VN ctest-vn-02714002: {}
2025-03-28 23:25:04,655 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 23:25:04,663 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1e9b52d8-c5e1-432a-8236-308be47ae43f
2025-03-28 23:25:04,688 - DEBUG - Requesting: http://10.0.0.24:8082/project/e46837d8-ea8b-4ce6-9fa4-495b886dc59f
2025-03-28 23:25:04,769 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:04,785 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:04,803 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c410da1b-2c65-498a-a842-8f60a653bd9d
2025-03-28 23:25:04,814 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c410da1b-2c65-498a-a842-8f60a653bd9d
2025-03-28 23:25:04,825 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f550ca53-f852-4668-9816-9a4d6dd742e6
2025-03-28 23:25:04,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 23:25:04,835 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:04,847 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c410da1b-2c65-498a-a842-8f60a653bd9d
2025-03-28 23:25:04,867 - INFO - Verified VN network id 9 for VN 492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:04,867 - INFO - Verifications in API Server for VN ctest-vn-49961790 passed
2025-03-28 23:25:04,867 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:04,883 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c410da1b-2c65-498a-a842-8f60a653bd9d
2025-03-28 23:25:04,892 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c410da1b-2c65-498a-a842-8f60a653bd9d
2025-03-28 23:25:04,902 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f550ca53-f852-4668-9816-9a4d6dd742e6
2025-03-28 23:25:04,920 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-49961790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63966343', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5272942933799423009', 'uuid-lslong': '12975228711599782464'}, 'enable': 'true', 'created': '2025-03-28T23:25:02', 'last-modified': '2025-03-28T23:25:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.754379'}
2025-03-28 23:25:04,930 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 23:25:04,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49961790 passed
2025-03-28 23:25:04,930 - DEBUG - ====Verifying policy data for ctest-vn-49961790 in API_Server ======
2025-03-28 23:25:04,930 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 23:25:04,937 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1e9b52d8-c5e1-432a-8236-308be47ae43f
2025-03-28 23:25:04,953 - DEBUG - Requesting: http://10.0.0.24:8082/project/e46837d8-ea8b-4ce6-9fa4-495b886dc59f
2025-03-28 23:25:05,033 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/492d41a9-3a05-4c21-b411-45c47a5aba40
2025-03-28 23:25:05,045 - DEBUG - ==>Verifying data for policy with id: 6ca076a8-7c90-4772-93d6-1ca26ff335bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-63966343', 'ctest-policy-allow-all-87881504']
2025-03-28 23:25:05,045 - INFO - VN ctest-vn-49961790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 23:25:05,045 - DEBUG - Verifying the vn in opserver
2025-03-28 23:25:05,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-49961790 virtual network link through opserver 10.0.0.24
2025-03-28 23:25:05,045 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 23:25:05,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-49961790', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-49961790?flat'}
2025-03-28 23:25:05,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63966343:ctest-vn-49961790 is found in opserver
2025-03-28 23:25:05,081 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 23:25:05,091 - DEBUG - VRF ids for VN ctest-vn-49961790: {}
2025-03-28 23:25:05,164 - DEBUG - Services list from nova: [