2024-08-21 12:02:42,055 - INFO - Domain Default found not creating
2024-08-21 12:02:42,439 - INFO - Project ctest-TestBasicPolicy-91527187 not found, creating it
2024-08-21 12:02:43,208 - INFO - Created Project:ctest-TestBasicPolicy-91527187, ID : 1478ef8a-02d9-4daf-8c13-620d62890ed7
2024-08-21 12:02:45,248 - INFO - ================================================================================
2024-08-21 12:02:45,248 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 12:02:45,248 - 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
2024-08-21 12:02:45,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.18': '0'}} with
2024-08-21 12:02:45,537 - INFO - Initial checks done. Running the testcase now
2024-08-21 12:02:45,537 - INFO -
2024-08-21 12:02:46,283 - DEBUG - Response for create_network : {'network': {'id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'name': 'ctest-vn-79728156', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-79728156'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:02:46,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d6403f2-f674-4e7c-a51f-3fd59cd983f4', 'name': '', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'network_id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'ip_version': 4, 'cidr': '99.25.131.0/26', 'allocation_pools': [{'start': '99.25.131.2', 'end': '99.25.131.62'}], 'gateway_ip': '99.25.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.25.131.2', 'tags': [], 'project_id': '1478ef8a02d94daf8c13620d62890ed7'}}
2024-08-21 12:02:46,579 - INFO - Created VN ctest-vn-79728156
2024-08-21 12:02:46,638 - DEBUG - VN ctest-vn-79728156 UUID is 608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:47,023 - DEBUG - Response for create_network : {'network': {'id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'name': 'ctest-vn-53406736', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-53406736'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:02:47,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '44fe6bc8-969d-42ec-b1bd-e889e1009dcb', 'name': '', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'network_id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'ip_version': 4, 'cidr': '8.243.85.192/26', 'allocation_pools': [{'start': '8.243.85.194', 'end': '8.243.85.254'}], 'gateway_ip': '8.243.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.243.85.194', 'tags': [], 'project_id': '1478ef8a02d94daf8c13620d62890ed7'}}
2024-08-21 12:02:47,252 - INFO - Created VN ctest-vn-53406736
2024-08-21 12:02:47,310 - DEBUG - VN ctest-vn-53406736 UUID is f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:47,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156, 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-91527187:ctest-vn-53406736, 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]
2024-08-21 12:02:47,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'name': 'ctest-vn-79728156', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d6403f2-f674-4e7c-a51f-3fd59cd983f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-79728156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']], 'subnet_ipam': [{'subnet_cidr': '99.25.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:02:48,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'name': 'ctest-vn-53406736', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44fe6bc8-969d-42ec-b1bd-e889e1009dcb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-53406736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']], 'subnet_ipam': [{'subnet_cidr': '8.243.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 12:02:48,402 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2024-08-21 12:02:48,732 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2024-08-21 12:02:48,774 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892
2024-08-21 12:02:48,804 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7
2024-08-21 12:02:48,901 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:48,923 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:48,948 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a
2024-08-21 12:02:48,968 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a
2024-08-21 12:02:48,987 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/fcfbe60b-4880-4f26-b490-bf712338626a
2024-08-21 12:02:49,004 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 12:02:49,005 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:49,028 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a
2024-08-21 12:02:49,057 - INFO - Verified VN network id 7 for VN 608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:49,057 - INFO - Verifications in API Server for VN ctest-vn-79728156 passed
2024-08-21 12:02:49,057 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:49,079 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a
2024-08-21 12:02:49,098 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a
2024-08-21 12:02:49,115 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/fcfbe60b-4880-4f26-b490-bf712338626a
2024-08-21 12:02:49,145 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91527187', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6957487462242009736', 'uuid-lslong': '10494228614912781981'}, 'enable': 'true', 'created': '2024-08-21T12:02:46', 'last-modified': '2024-08-21T12:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.305213'}
2024-08-21 12:02:49,162 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 12:02:49,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79728156 passed
2024-08-21 12:02:49,163 - DEBUG - ====Verifying policy data for ctest-vn-79728156 in API_Server ======
2024-08-21 12:02:49,163 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2024-08-21 12:02:49,179 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892
2024-08-21 12:02:49,223 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7
2024-08-21 12:02:49,323 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d
2024-08-21 12:02:49,345 - DEBUG - ==>Verifying data for policy with id: 8b02b20f-33eb-4ca4-8c04-f6f6adb626b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']
2024-08-21 12:02:49,345 - INFO - VN ctest-vn-79728156 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 12:02:49,346 - DEBUG - Verifying the vn in opserver
2024-08-21 12:02:49,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156 virtual network link through opserver 10.0.0.60
2024-08-21 12:02:49,346 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2024-08-21 12:02:49,703 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2024-08-21 12:02:49,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156?flat'}
2024-08-21 12:02:49,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156 is found in opserver
2024-08-21 12:02:49,833 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 12:02:49,839 - DEBUG - VRF ids for VN ctest-vn-79728156: {}
2024-08-21 12:02:49,839 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2024-08-21 12:02:49,861 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892
2024-08-21 12:02:49,879 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7
2024-08-21 12:02:49,995 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,017 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,035 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9
2024-08-21 12:02:50,051 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9
2024-08-21 12:02:50,064 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/14ad2df5-479c-4c64-a1be-68329232e126
2024-08-21 12:02:50,079 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 12:02:50,079 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,094 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9
2024-08-21 12:02:50,118 - INFO - Verified VN network id 8 for VN f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,118 - INFO - Verifications in API Server for VN ctest-vn-53406736 passed
2024-08-21 12:02:50,119 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,135 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9
2024-08-21 12:02:50,147 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9
2024-08-21 12:02:50,160 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/14ad2df5-479c-4c64-a1be-68329232e126
2024-08-21 12:02:50,189 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91527187', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17990328737495598389', 'uuid-lslong': '13414559798433271655'}, 'enable': 'true', 'created': '2024-08-21T12:02:46', 'last-modified': '2024-08-21T12:02:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.005963'}
2024-08-21 12:02:50,213 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 12:02:50,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53406736 passed
2024-08-21 12:02:50,214 - DEBUG - ====Verifying policy data for ctest-vn-53406736 in API_Server ======
2024-08-21 12:02:50,214 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2024-08-21 12:02:50,230 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892
2024-08-21 12:02:50,258 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7
2024-08-21 12:02:50,384 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67
2024-08-21 12:02:50,397 - DEBUG - ==>Verifying data for policy with id: 8b02b20f-33eb-4ca4-8c04-f6f6adb626b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']
2024-08-21 12:02:50,397 - INFO - VN ctest-vn-53406736 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 12:02:50,397 - DEBUG - Verifying the vn in opserver
2024-08-21 12:02:50,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736 virtual network link through opserver 10.0.0.60
2024-08-21 12:02:50,398 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2024-08-21 12:02:50,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736?flat'}
2024-08-21 12:02:50,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736 is found in opserver
2024-08-21 12:02:50,446 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 12:02:50,458 - DEBUG - VRF ids for VN ctest-vn-53406736: {}
2024-08-21 12:02:50,617 - DEBUG - Services list from nova: [