2024-09-17 22:10:00,768 - INFO - Domain Default found not creating
2024-09-17 22:10:00,933 - INFO - Project ctest-TestBasicPolicy-45473075 not found, creating it
2024-09-17 22:10:01,413 - INFO - Created Project:ctest-TestBasicPolicy-45473075, ID : 8779d600-f661-404b-a933-e5c38f0144fb
2024-09-17 22:10:02,963 - INFO - ================================================================================
2024-09-17 22:10:02,963 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 22:10:02,964 - 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-09-17 22:10:03,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.12': '0'}} with
2024-09-17 22:10:03,219 - INFO - Initial checks done. Running the testcase now
2024-09-17 22:10:03,219 - INFO -
2024-09-17 22:10:05,590 - DEBUG - Response for create_network : {'network': {'id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'name': 'ctest-vn-81324015', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-81324015'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:10:05,825 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aecb81af-ebdd-4423-9d43-34d5b3d87093', 'name': '', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'network_id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'ip_version': 4, 'cidr': '134.239.117.0/26', 'allocation_pools': [{'start': '134.239.117.2', 'end': '134.239.117.62'}], 'gateway_ip': '134.239.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.239.117.2', 'tags': [], 'project_id': '8779d600f661404ba933e5c38f0144fb'}}
2024-09-17 22:10:05,848 - INFO - Created VN ctest-vn-81324015
2024-09-17 22:10:05,908 - DEBUG - VN ctest-vn-81324015 UUID is eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:06,233 - DEBUG - Response for create_network : {'network': {'id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'name': 'ctest-vn-25642917', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-25642917'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:10:06,433 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cc69445-cd10-470b-998d-1775c9a2d06a', 'name': '', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'network_id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'ip_version': 4, 'cidr': '164.75.15.192/26', 'allocation_pools': [{'start': '164.75.15.194', 'end': '164.75.15.254'}], 'gateway_ip': '164.75.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.75.15.194', 'tags': [], 'project_id': '8779d600f661404ba933e5c38f0144fb'}}
2024-09-17 22:10:06,453 - INFO - Created VN ctest-vn-25642917
2024-09-17 22:10:06,512 - DEBUG - VN ctest-vn-25642917 UUID is b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:06,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015, 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-45473075:ctest-vn-25642917, 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-09-17 22:10:06,946 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eef7ea10-48b2-4d31-b842-f7c0cd0bf3db', 'name': 'ctest-vn-81324015', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aecb81af-ebdd-4423-9d43-34d5b3d87093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-81324015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']], 'subnet_ipam': [{'subnet_cidr': '134.239.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:10:07,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b62131ac-78e7-44c8-95ec-60eb4f86980a', 'name': 'ctest-vn-25642917', 'tenant_id': '8779d600f661404ba933e5c38f0144fb', 'project_id': '8779d600f661404ba933e5c38f0144fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cc69445-cd10-470b-998d-1775c9a2d06a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-vn-25642917'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']], 'subnet_ipam': [{'subnet_cidr': '164.75.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:10:07,336 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 22:10:07,630 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 22:10:07,662 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be
2024-09-17 22:10:07,676 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb
2024-09-17 22:10:07,757 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:07,772 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:07,786 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca
2024-09-17 22:10:07,795 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca
2024-09-17 22:10:07,804 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6e8d4954-726b-4fb1-afc4-c3b2e90aa595
2024-09-17 22:10:07,812 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 22:10:07,812 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:07,825 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca
2024-09-17 22:10:07,845 - INFO - Verified VN network id 7 for VN eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:07,845 - INFO - Verifications in API Server for VN ctest-vn-81324015 passed
2024-09-17 22:10:07,845 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:07,861 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca
2024-09-17 22:10:07,871 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/fbc5526b-bfb4-4b3a-bae8-5228335619ca
2024-09-17 22:10:07,880 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6e8d4954-726b-4fb1-afc4-c3b2e90aa595
2024-09-17 22:10:07,896 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45473075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17219489055934401841', 'uuid-lslong': '13277447058887537627'}, 'enable': 'true', 'created': '2024-09-17T22:10:05', 'last-modified': '2024-09-17T22:10:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978583'}
2024-09-17 22:10:07,903 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 22:10:07,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81324015 passed
2024-09-17 22:10:07,904 - DEBUG - ====Verifying policy data for ctest-vn-81324015 in API_Server ======
2024-09-17 22:10:07,904 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 22:10:07,910 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be
2024-09-17 22:10:07,922 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb
2024-09-17 22:10:08,001 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/eef7ea10-48b2-4d31-b842-f7c0cd0bf3db
2024-09-17 22:10:08,015 - DEBUG - ==>Verifying data for policy with id: 90a87219-2cc8-456c-9a25-15ff86a87afe, fqn: ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']
2024-09-17 22:10:08,015 - INFO - VN ctest-vn-81324015 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 22:10:08,015 - DEBUG - Verifying the vn in opserver
2024-09-17 22:10:08,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015 virtual network link through opserver 10.0.0.65
2024-09-17 22:10:08,015 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 22:10:08,308 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 22:10:08,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015?flat'}
2024-09-17 22:10:08,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-81324015 is found in opserver
2024-09-17 22:10:08,382 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 22:10:08,387 - DEBUG - VRF ids for VN ctest-vn-81324015: {}
2024-09-17 22:10:08,387 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 22:10:08,394 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be
2024-09-17 22:10:08,407 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb
2024-09-17 22:10:08,483 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,500 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,513 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8
2024-09-17 22:10:08,524 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8
2024-09-17 22:10:08,533 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9f70dd2c-a204-4395-bfd8-91ac52db7ae6
2024-09-17 22:10:08,540 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 22:10:08,540 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,554 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8
2024-09-17 22:10:08,577 - INFO - Verified VN network id 8 for VN b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,577 - INFO - Verifications in API Server for VN ctest-vn-25642917 passed
2024-09-17 22:10:08,577 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,591 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8
2024-09-17 22:10:08,600 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/591667c1-eb23-4e45-aee6-00a28cec1fb8
2024-09-17 22:10:08,610 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9f70dd2c-a204-4395-bfd8-91ac52db7ae6
2024-09-17 22:10:08,624 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45473075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13123825405966894280', 'uuid-lslong': '10803116169922779146'}, 'enable': 'true', 'created': '2024-09-17T22:10:06', 'last-modified': '2024-09-17T22:10:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462037'}
2024-09-17 22:10:08,631 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 22:10:08,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25642917 passed
2024-09-17 22:10:08,631 - DEBUG - ====Verifying policy data for ctest-vn-25642917 in API_Server ======
2024-09-17 22:10:08,631 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 22:10:08,637 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fa443c38-210a-4cc9-b100-ab0a5c6248be
2024-09-17 22:10:08,653 - DEBUG - Requesting: http://10.0.0.65:8082/project/8779d600-f661-404b-a933-e5c38f0144fb
2024-09-17 22:10:08,733 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b62131ac-78e7-44c8-95ec-60eb4f86980a
2024-09-17 22:10:08,748 - DEBUG - ==>Verifying data for policy with id: 90a87219-2cc8-456c-9a25-15ff86a87afe, fqn: ['default-domain', 'ctest-TestBasicPolicy-45473075', 'ctest-policy-allow-all-15156585']
2024-09-17 22:10:08,748 - INFO - VN ctest-vn-25642917 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 22:10:08,748 - DEBUG - Verifying the vn in opserver
2024-09-17 22:10:08,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917 virtual network link through opserver 10.0.0.65
2024-09-17 22:10:08,748 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 22:10:08,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917?flat'}
2024-09-17 22:10:08,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45473075:ctest-vn-25642917 is found in opserver
2024-09-17 22:10:08,772 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 22:10:08,778 - DEBUG - VRF ids for VN ctest-vn-25642917: {}
2024-09-17 22:10:08,833 - DEBUG - Services list from nova: [