2024-11-10 20:41:29,011 - INFO - Domain Default found not creating
2024-11-10 20:41:29,181 - INFO - Project ctest-TestBasicPolicy-32082483 not found, creating it
2024-11-10 20:41:29,672 - INFO - Created Project:ctest-TestBasicPolicy-32082483, ID : f268f735-1e8a-4944-9637-7823ca7a3c25
2024-11-10 20:41:31,357 - INFO - ================================================================================
2024-11-10 20:41:31,357 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 20:41:31,357 - 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-11-10 20:41:31,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.13': '0'}} with
2024-11-10 20:41:31,612 - INFO - Initial checks done. Running the testcase now
2024-11-10 20:41:31,612 - INFO -
2024-11-10 20:41:32,530 - DEBUG - Response for create_network : {'network': {'id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'name': 'ctest-vn-96056093', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-96056093'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:41:32,767 - DEBUG - Response for create_subnet : {'subnet': {'id': '2435458f-8557-4eb6-b62b-de2dea32feaf', 'name': '', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'network_id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'ip_version': 4, 'cidr': '11.239.114.192/26', 'allocation_pools': [{'start': '11.239.114.194', 'end': '11.239.114.254'}], 'gateway_ip': '11.239.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.239.114.194', 'tags': [], 'project_id': 'f268f7351e8a494496377823ca7a3c25'}}
2024-11-10 20:41:32,787 - INFO - Created VN ctest-vn-96056093
2024-11-10 20:41:32,845 - DEBUG - VN ctest-vn-96056093 UUID is 4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:33,178 - DEBUG - Response for create_network : {'network': {'id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'name': 'ctest-vn-22696811', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-22696811'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:41:33,389 - DEBUG - Response for create_subnet : {'subnet': {'id': '56ec4b6e-29fb-4403-834c-2311ae14b04b', 'name': '', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'network_id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'ip_version': 4, 'cidr': '93.162.187.128/26', 'allocation_pools': [{'start': '93.162.187.130', 'end': '93.162.187.190'}], 'gateway_ip': '93.162.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.162.187.130', 'tags': [], 'project_id': 'f268f7351e8a494496377823ca7a3c25'}}
2024-11-10 20:41:33,414 - INFO - Created VN ctest-vn-22696811
2024-11-10 20:41:33,473 - DEBUG - VN ctest-vn-22696811 UUID is 761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:33,604 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093, 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-32082483:ctest-vn-22696811, 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-11-10 20:41:33,931 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'name': 'ctest-vn-96056093', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2435458f-8557-4eb6-b62b-de2dea32feaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-96056093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']], 'subnet_ipam': [{'subnet_cidr': '11.239.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:41:34,180 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'name': 'ctest-vn-22696811', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56ec4b6e-29fb-4403-834c-2311ae14b04b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-22696811'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']], 'subnet_ipam': [{'subnet_cidr': '93.162.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:41:34,333 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-11-10 20:41:34,690 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-11-10 20:41:34,725 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1
2024-11-10 20:41:34,743 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25
2024-11-10 20:41:34,828 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:34,845 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:34,860 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7
2024-11-10 20:41:34,871 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7
2024-11-10 20:41:34,881 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e40f980e-dde5-4026-ae83-8c60fceeacaf
2024-11-10 20:41:34,890 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:41:34,890 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:34,905 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7
2024-11-10 20:41:34,930 - INFO - Verified VN network id 8 for VN 4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:34,930 - INFO - Verifications in API Server for VN ctest-vn-96056093 passed
2024-11-10 20:41:34,930 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:34,948 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7
2024-11-10 20:41:34,958 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7
2024-11-10 20:41:34,967 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e40f980e-dde5-4026-ae83-8c60fceeacaf
2024-11-10 20:41:34,982 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32082483', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5724214724547659988', 'uuid-lslong': '12896442142644695531'}, 'enable': 'true', 'created': '2024-11-10T20:41:32', 'last-modified': '2024-11-10T20:41:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081915'}
2024-11-10 20:41:34,989 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:41:34,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96056093 passed
2024-11-10 20:41:34,990 - DEBUG - ====Verifying policy data for ctest-vn-96056093 in API_Server ======
2024-11-10 20:41:34,990 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-11-10 20:41:34,996 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1
2024-11-10 20:41:35,011 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25
2024-11-10 20:41:35,097 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb
2024-11-10 20:41:35,113 - DEBUG - ==>Verifying data for policy with id: bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']
2024-11-10 20:41:35,113 - INFO - VN ctest-vn-96056093 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:41:35,113 - DEBUG - Verifying the vn in opserver
2024-11-10 20:41:35,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093 virtual network link through opserver 10.0.0.36
2024-11-10 20:41:35,113 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-11-10 20:41:35,455 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-11-10 20:41:35,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093?flat'}
2024-11-10 20:41:35,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093 is found in opserver
2024-11-10 20:41:35,538 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:41:35,547 - DEBUG - VRF ids for VN ctest-vn-96056093: {}
2024-11-10 20:41:35,547 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-11-10 20:41:35,554 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1
2024-11-10 20:41:35,568 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25
2024-11-10 20:41:35,653 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,677 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,691 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d
2024-11-10 20:41:35,701 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d
2024-11-10 20:41:35,712 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d7ba4afd-4a5f-446e-938d-ffcbb2d6933c
2024-11-10 20:41:35,722 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:41:35,723 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,738 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d
2024-11-10 20:41:35,761 - INFO - Verified VN network id 9 for VN 761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,761 - INFO - Verifications in API Server for VN ctest-vn-22696811 passed
2024-11-10 20:41:35,761 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,778 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d
2024-11-10 20:41:35,787 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d
2024-11-10 20:41:35,797 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d7ba4afd-4a5f-446e-938d-ffcbb2d6933c
2024-11-10 20:41:35,812 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32082483', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8510462071842948990', 'uuid-lslong': '12587979463269888085'}, 'enable': 'true', 'created': '2024-11-10T20:41:33', 'last-modified': '2024-11-10T20:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.655556'}
2024-11-10 20:41:35,819 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:41:35,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22696811 passed
2024-11-10 20:41:35,819 - DEBUG - ====Verifying policy data for ctest-vn-22696811 in API_Server ======
2024-11-10 20:41:35,819 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-11-10 20:41:35,826 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1
2024-11-10 20:41:35,840 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25
2024-11-10 20:41:35,919 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055
2024-11-10 20:41:35,935 - DEBUG - ==>Verifying data for policy with id: bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']
2024-11-10 20:41:35,935 - INFO - VN ctest-vn-22696811 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:41:35,935 - DEBUG - Verifying the vn in opserver
2024-11-10 20:41:35,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811 virtual network link through opserver 10.0.0.36
2024-11-10 20:41:35,935 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-11-10 20:41:35,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811?flat'}
2024-11-10 20:41:35,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811 is found in opserver
2024-11-10 20:41:35,959 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:41:35,964 - DEBUG - VRF ids for VN ctest-vn-22696811: {}
2024-11-10 20:41:36,026 - DEBUG - Services list from nova: [